projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9df3425
)
cmenu: pad help filename with 0 instead of spaces
author
Pierre-Alexandre Meyer
<pierre@mouraf.org>
Mon, 7 Sep 2009 18:00:34 +0000
(11:00 -0700)
committer
Pierre-Alexandre Meyer
<pierre@mouraf.org>
Mon, 7 Sep 2009 18:00:34 +0000
(11:00 -0700)
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>
com32/cmenu/libmenu/help.c
patch
|
blob
|
history
diff --git
a/com32/cmenu/libmenu/help.c
b/com32/cmenu/libmenu/help.c
index
0ec4e44
..
0df1e10
100644
(file)
--- 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%
0
5d.txt", helpid);
runhelp(filename);
}