Mercurial > hg > openttd
changeset 934:f58a0f443f95 draft
(svn r1422) Fixed linux compiling, that was broken in r1420
author | dominik <dominik@openttd.org> |
---|---|
date | Sat, 08 Jan 2005 08:29:12 +0000 |
parents | 6dae9efe4be5 |
children | 85207844f02e |
files | console_cmds.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/console_cmds.c +++ b/console_cmds.c @@ -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; }