Add clean status_surface. cmd syntax: "w;h;bg <statusline>"

This commit is contained in:
Martin Duquesnoy
2012-02-06 15:29:48 +01:00
parent b5764dd0a6
commit ff269f01b3
8 changed files with 73 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ parse_args(char *str, char delim, char end, int narg, char *args[])
int i = 0;
for(args[0] = str; *str && (*str != end || *(str - 1) == '\\') && i < narg; ++str)
if(*str == delim)
if(*str == delim && i < narg - 1)
{
*str = '\0';
args[++i] = ++str;