Remove char_u: Review

Helped-by: Scott Prager <splinterofchaos@gmail.com>
This commit is contained in:
Michael Reed
2015-05-13 15:29:50 -04:00
parent 62bcd98ae3
commit af3381b319
2 changed files with 6 additions and 6 deletions

View File

@@ -1168,12 +1168,13 @@ static void command_line_scan(mparm_T *parmp)
a = SESSION_FILE;
++argc;
--argv;
} else
} else {
a = argv[0];
p = xmalloc(STRLEN(a) + 4);
sprintf((char *)p, "so %s", a);
}
char *s = xmalloc(STRLEN(a) + 4);
sprintf(s, "so %s", a);
parmp->cmds_tofree[parmp->n_commands] = TRUE;
parmp->commands[parmp->n_commands++] = (char *)p;
parmp->commands[parmp->n_commands++] = s;
} else {
parmp->commands[parmp->n_commands++] = argv[0];
}