aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-07 11:00:34 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-07 11:00:34 -0700
commit1913abe6f8e12f11a5050d188e631aba7d74a912 (patch)
treef7a855a39dc50de819747806bcf4d88d229b5bae /com32/cmenu
parent9df3425eb092a1263985d6b5c145c88e41be930c (diff)
downloadsyslinux-1913abe6f8e12f11a5050d188e631aba7d74a912.tar.gz
syslinux-1913abe6f8e12f11a5050d188e631aba7d74a912.tar.xz
syslinux-1913abe6f8e12f11a5050d188e631aba7d74a912.zip
cmenu: pad help filename with 0 instead of spaces
The manual states that the help filename format is hlp<NNNNN>.txt where <NNNNN> is the helpid. If the helpid contains less than 5 digits, pad with zero, not spaces, i.e. look for hlp00023.txt, not hlp 23.txt. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/libmenu/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/cmenu/libmenu/help.c b/com32/cmenu/libmenu/help.c
index 0ec4e445..0df1e103 100644
--- a/com32/cmenu/libmenu/help.c
+++ b/com32/cmenu/libmenu/help.c
@@ -215,7 +215,7 @@ void runhelpsystem(unsigned int helpid)
{
char filename[15];
- sprintf(filename, "hlp%5d.txt", helpid);
+ sprintf(filename, "hlp%05d.txt", helpid);
runhelp(filename);
}