diff options
author | dominik <dominik@openttd.org> | 2005-01-08 08:29:12 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-08 08:29:12 +0000 |
commit | 3f7da833d14b8cb4638fad615054afbe508a9319 (patch) | |
tree | 885b153cdcd19c0017b1191d700eed3e4ca0e97e | |
parent | db4668c05707cbc169937a52117eeeba5da9e4ae (diff) | |
download | openttd-3f7da833d14b8cb4638fad615054afbe508a9319.tar.xz |
(svn r1422) Fixed linux compiling, that was broken in r1420
-rw-r--r-- | console_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console_cmds.c b/console_cmds.c index 5e2928c3c..1974e33ce 100644 --- 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; } |