diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/String.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/String.cc b/lib/String.cc index 57fcdc3..b7ce2ab 100644 --- a/lib/String.cc +++ b/lib/String.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: String.cc,v 1.45 2006-07-17 16:08:44 pixel Exp $ */ +/* $Id: String.cc,v 1.46 2007-04-01 11:39:06 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -278,10 +278,10 @@ char * String::strdup(size_t from, ssize_t to) const { return r; } -int String::to_int(void) const { +int String::to_int(const char * fmt) const { int r; - sscanf(str, "%i", &r); + sscanf(str, fmt, &r); return r; } |