From 1913abe6f8e12f11a5050d188e631aba7d74a912 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Mon, 7 Sep 2009 11:00:34 -0700 Subject: cmenu: pad help filename with 0 instead of spaces The manual states that the help filename format is hlp.txt where 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 --- com32/cmenu/libmenu/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'com32/cmenu') 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); } -- cgit v1.2.1