Show
Ignore:
Timestamp:
09/07/09 18:00:34 (3 years ago)
Author:
Pierre-Alexandre Meyer <pierre@…>
Children:
93c98eb6780ad1cbbb19d0b70bb07cc9921a6291
Parents:
9df3425eb092a1263985d6b5c145c88e41be930c
git-committer:
Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-09-07T11:00:34Z-0700
Message:

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@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/cmenu/libmenu/help.c

    r9dbacd3 r1913ab  
    216216    char filename[15]; 
    217217 
    218     sprintf(filename, "hlp%5d.txt", helpid); 
     218    sprintf(filename, "hlp%05d.txt", helpid); 
    219219    runhelp(filename); 
    220220}