mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue