# HG changeset patch # User dominik # Date 2005-01-08 08:29:12 # Node ID c6867fa83617836a3f270c5aadcd218c89d294b2 # Parent 03d8553305f2a9d8e7332979e073498ddd0c8f52 (svn r1422) Fixed linux compiling, that was broken in r1420 diff --git a/console_cmds.c b/console_cmds.c --- a/console_cmds.c +++ b/console_cmds.c @@ -234,7 +234,7 @@ DEF_CONSOLE_CMD(ConScanFiles) 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 @@ DEF_CONSOLE_CMD(ConScanFiles) 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; }