Index: trunk/src/core/string.cc
===================================================================
--- trunk/src/core/string.cc	(revision 365)
+++ trunk/src/core/string.cc	(revision 367)
@@ -66,5 +66,4 @@
 		n /= 10;
 	} while ( n > 0 );
-	if ( n < 0 ) *s++ = '-';
 	*s = '\0';
 	string_reverse( str, s - 1 );
@@ -80,5 +79,4 @@
 		n /= 10;
 	} while ( n > 0 );
-	if ( n < 0 ) *s++ = '-';
 	*s = '\0';
 	string_reverse( str, s - 1 );
@@ -91,5 +89,5 @@
 	sprintf_s( str, 64, "%.*g", 6, n );
 #else
-	snprintf( buffer, 64, "%.*g", 6, n );
+	snprintf( str, 64, "%.*g", 6, n );
 #endif
 	sprintf( str, "%g", n );
@@ -102,5 +100,5 @@
 	sprintf_s( str, 64, "%.*g", 6, n );
 #else
-	snprintf( buffer, 64, "%.*g", 6, n );
+	snprintf( str, 64, "%.*g", 6, n );
 #endif
 	return strlen( str );
