(svn r1422) Fixed linux compiling, that was broken in r1420
authordominik
Sat, 08 Jan 2005 08:29:12 +0000
changeset 934 747e52f64119
parent 933 38fe9b8f4422
child 935 ae06c883382f
(svn r1422) Fixed linux compiling, that was broken in r1420
console_cmds.c
--- a/console_cmds.c	Sat Jan 08 01:05:24 2005 +0000
+++ b/console_cmds.c	Sat Jan 08 08:29:12 2005 +0000
@@ -234,7 +234,7 @@
 			if (item->type == FIOS_TYPE_PARENT) {
 				// huh we are searching for the parent directory
 				char buffer[10];
-				itoa(pos,buffer,10);
+				sprintf(buffer, "%d", pos);
 				IConsoleVarSetString(result, buffer);
 				return result;
 			}
@@ -243,7 +243,7 @@
 			if (item->type == FIOS_TYPE_FILE) {
 				if (strcmp(argv[1], item->name) == 0) {
 					char buffer[10];
-					itoa(pos,buffer,10);
+					sprintf(buffer, "%d", pos);
 					IConsoleVarSetString(result, buffer);
 					return result;
 				}