mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
$~ crashed if arglist was empty
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1858 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
75ebab8089
commit
476b5ec863
@ -74,7 +74,7 @@ static char *get_argument(char **cmd, char **arglist)
|
||||
}
|
||||
|
||||
str = g_string_new(NULL);
|
||||
while (arg < argcount && (arg <= max || max == -1)) {
|
||||
while (arg >= 0 && arg < argcount && (arg <= max || max == -1)) {
|
||||
g_string_append(str, arglist[arg]);
|
||||
g_string_append_c(str, ' ');
|
||||
arg++;
|
||||
|
Loading…
Reference in New Issue
Block a user