aboutsummaryrefslogtreecommitdiff
path: root/ex/ex_argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'ex/ex_argv.c')
-rw-r--r--ex/ex_argv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ex/ex_argv.c b/ex/ex_argv.c
index 8b1fd7858fb1..dd37fe1f69e2 100644
--- a/ex/ex_argv.c
+++ b/ex/ex_argv.c
@@ -764,11 +764,11 @@ err: if (ifp != NULL)
* shell that does that is broken.
*/
for (p = bp, len = 0, ch = EOF;
- (ch = GETC(ifp)) != EOF; *p++ = ch, blen-=sizeof(CHAR_T), ++len)
+ (ch = GETC(ifp)) != EOF; *p++ = ch, blen -= sizeof(CHAR_T), ++len)
if (blen < 5) {
- ADD_SPACE_GOTOW(sp, bp, *blenp, *blenp * 2);
+ ADD_SPACE_GOTO(sp, CHAR_T, bp, *blenp, *blenp * 2);
p = bp + len;
- blen = *blenp - len;
+ blen = *blenp - len * sizeof(CHAR_T);
}
/* Delete the final newline, nul terminate the string. */