mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
/HELP without any parameters read data outside it's buffer
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1117 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
43186de148
commit
6f370cf6ff
@ -213,7 +213,8 @@ static void show_help(const char *data)
|
||||
if (!found || (helpitem != NULL && !show_help_rec(helpitem)))
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "No help for %s", data);
|
||||
|
||||
if (data[strlen(data)-1] != ' ' && command_have_sub(data)) {
|
||||
if (*data != '\0' && data[strlen(data)-1] != ' ' &&
|
||||
command_have_sub(data)) {
|
||||
char *cmd;
|
||||
|
||||
cmd = g_strconcat(data, " ", NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user