From ab884e8dd49e870f9e765e70a612d2653e7f1c91 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 21 Mar 2013 19:03:20 +0800 Subject: [PATCH] fix for old gcc --- src/util/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/path.cc b/src/util/path.cc index bc71128..c928454 100644 --- a/src/util/path.cc +++ b/src/util/path.cc @@ -72,7 +72,7 @@ bool sanitize_filename(string & filename) } // Check to see if we yielded a valid format specifier - if('d' == tmp.back()) + if('d' == tmp[tmp.size()-1]) { // Found a valid integer format sanitized.append(tmp);