mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-26 11:12:19 -05:00
avoid garbage in xchat_pluginpref_list
This commit is contained in:
parent
a8e3164fef
commit
6d8d9c335d
@ -1812,6 +1812,7 @@ xchat_pluginpref_list (xchat_plugin *pl, char* dest)
|
|||||||
}
|
}
|
||||||
else /* existing config file, get list of settings */
|
else /* existing config file, get list of settings */
|
||||||
{
|
{
|
||||||
|
strcpy (dest, ""); /* clean up garbage */
|
||||||
while (fscanf (fpIn, " %[^\n]", &buffer) != EOF) /* read whole lines including whitespaces */
|
while (fscanf (fpIn, " %[^\n]", &buffer) != EOF) /* read whole lines including whitespaces */
|
||||||
{
|
{
|
||||||
token = strtok (buffer, "=");
|
token = strtok (buffer, "=");
|
||||||
|
Loading…
Reference in New Issue
Block a user