summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-01-07 10:15:46 +0000
committertruelight <truelight@openttd.org>2006-01-07 10:15:46 +0000
commite373bd02ba35dc1a75eea3913345640de8d054b6 (patch)
tree5c512be4c7678472490d7084fd58836986554427 /openttd.c
parent835cd6ea2897fed19bcdbdf5f237102a22065502 (diff)
downloadopenttd-e373bd02ba35dc1a75eea3913345640de8d054b6.tar.xz
(svn r3380) -Fix: removed 'size' from r3379, because it was pretty silly
-Note: no longer showhelp publish -p, as it is deprecated
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/openttd.c b/openttd.c
index 5cdf8acec..58bcb803a 100644
--- a/openttd.c
+++ b/openttd.c
@@ -120,14 +120,11 @@ extern const char _openttd_revision[];
static void showhelp(void)
{
char buf[4096], *p;
- int size, pos;
p = buf;
- size = sizeof(buf);
- pos = snprintf(p, size, "OpenTTD %s\n", _openttd_revision);
- p += pos; size -= pos;
- pos = snprintf(p, size,
+ p += sprintf(p, "OpenTTD %s\n", _openttd_revision);
+ p += sprintf(p,
"\n"
"\n"
"Command line options:\n"
@@ -151,9 +148,8 @@ static void showhelp(void)
" -c config_file = Use 'config_file' instead of 'openttd.cfg'\n"
"\n"
);
- p += pos; size -= pos;
- size = GetDriverList(p, size);
+ p = GetDriverList(p);
ShowInfo(buf);
}