diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index ace0cdafc..032482c6d 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1063,7 +1063,7 @@ static int o_save_ptr_helper(o_string *o, int n) | |||
1063 | /* list[n] points to string_start, make space for 16 more pointers */ | 1063 | /* list[n] points to string_start, make space for 16 more pointers */ |
1064 | o->maxlen += 0x10 * sizeof(list[0]); | 1064 | o->maxlen += 0x10 * sizeof(list[0]); |
1065 | o->data = xrealloc(o->data, o->maxlen + 1); | 1065 | o->data = xrealloc(o->data, o->maxlen + 1); |
1066 | list = (char**)o->data; | 1066 | list = (char**)o->data; |
1067 | memmove(list + n + 0x10, list + n, string_len); | 1067 | memmove(list + n + 0x10, list + n, string_len); |
1068 | o->length += 0x10 * sizeof(list[0]); | 1068 | o->length += 0x10 * sizeof(list[0]); |
1069 | } else | 1069 | } else |
@@ -3018,7 +3018,7 @@ static void done_pipe(struct p_context *ctx, pipe_style type) | |||
3018 | /* Create the memory for child, roughly: | 3018 | /* Create the memory for child, roughly: |
3019 | * ctx->pipe->progs = new struct child_prog; | 3019 | * ctx->pipe->progs = new struct child_prog; |
3020 | * ctx->pipe->progs[0].family = ctx->pipe; | 3020 | * ctx->pipe->progs[0].family = ctx->pipe; |
3021 | * ctx->child = &ctx->pipe->progs[0]; | 3021 | * ctx->child = &ctx->pipe->progs[0]; |
3022 | */ | 3022 | */ |
3023 | done_command(ctx); | 3023 | done_command(ctx); |
3024 | } | 3024 | } |