15 lines
577 B
Text
15 lines
577 B
Text
Index: Programs/cmd.c
|
|
--- Programs/cmd.c.orig
|
|
+++ Programs/cmd.c
|
|
@@ -87,8 +87,9 @@ describeCommand (int command, char *buffer, int size)
|
|
candidate->name, number, candidate->description);
|
|
} else {
|
|
int offset;
|
|
- snprintf(buffer, size, "%s: %n%s",
|
|
- candidate->name, &offset, candidate->description);
|
|
+ offset = strlen(candidate->name) + 2;
|
|
+ snprintf(buffer, size, "%s: %s",
|
|
+ candidate->name, candidate->description);
|
|
|
|
if ((blk == 0) && (command & BRL_FLG_TOGGLE_MASK)) {
|
|
char *description = buffer + offset;
|