mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
security fixes from 0.7.97.2
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
99b29df17c
commit
06a6428d83
6 changed files with 21 additions and 18 deletions
|
|
@ -96,14 +96,14 @@ static void help_category(GSList *cmdlist, gint items, gint max)
|
|||
|
||||
if (col == cols || tmp->next == NULL)
|
||||
{
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, str->str);
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", str->str);
|
||||
g_string_truncate(str, 0);
|
||||
col = 0; line++;
|
||||
tmp = g_slist_nth(cmdlist, line-1); skip = 1;
|
||||
}
|
||||
}
|
||||
if (str->len != 0)
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, str->str);
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", str->str);
|
||||
g_string_free(str, TRUE);
|
||||
g_free(cmdbuf);
|
||||
}
|
||||
|
|
@ -131,7 +131,7 @@ static int show_help_rec(COMMAND_REC *cmd)
|
|||
recvlen = read(f, tmpbuf, sizeof(tmpbuf));
|
||||
|
||||
ret = line_split(tmpbuf, recvlen, &str, &buffer);
|
||||
if (ret > 0) printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, str);
|
||||
if (ret > 0) printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", str);
|
||||
}
|
||||
while (ret > 0);
|
||||
line_split_free(buffer);
|
||||
|
|
@ -457,7 +457,7 @@ static void event_cmderror(gpointer errorp, const char *arg)
|
|||
error = GPOINTER_TO_INT(errorp);
|
||||
if (error == CMDERR_ERRNO) {
|
||||
/* errno is special */
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, g_strerror(errno));
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, "%s", g_strerror(errno));
|
||||
} else {
|
||||
/* others */
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, ret_texts[error + -CMDERR_OPTION_UNKNOWN], arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue