aboutsummaryrefslogtreecommitdiff
path: root/editors/ed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/ed.c')
-rw-r--r--editors/ed.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/ed.c b/editors/ed.c
index b1b6a8d27..dbb51306c 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -7,6 +7,9 @@
7 * The "ed" built-in command (much simplified) 7 * The "ed" built-in command (much simplified)
8 */ 8 */
9 9
10//usage:#define ed_trivial_usage ""
11//usage:#define ed_full_usage ""
12
10#include "libbb.h" 13#include "libbb.h"
11 14
12typedef struct LINE { 15typedef struct LINE {
@@ -451,7 +454,7 @@ static void subCommand(const char *cmd, int num1, int num2)
451 454
452 /* 455 /*
453 * The new string is larger, so allocate a new line 456 * The new string is larger, so allocate a new line
454 * structure and use that. Link it in in place of 457 * structure and use that. Link it in place of
455 * the old line structure. 458 * the old line structure.
456 */ 459 */
457 nlp = xmalloc(sizeof(LINE) + lp->len + deltaLen); 460 nlp = xmalloc(sizeof(LINE) + lp->len + deltaLen);