Displaying 1 result from an estimated 1 matches for "2d3c2dd".
Did you mean:
2d3c2af
2008 Jan 31
2
[patch] fix crash in ini plugin
The ini plugin segfaults on startup. The following patch fixes it. Not
sure why this hasn't been caught before - i guess not many people use
the ini plugin.
Please apply.
randolph
diff --git a/plugins/ini.c b/plugins/ini.c
index d58f671..2d3c2dd 100644
--- a/plugins/ini.c
+++ b/plugins/ini.c
@@ -377,7 +377,7 @@ iniParseLine (char *line, char **optionName, char **optionValue)
if (*optionName)
{
strncpy (*optionName, line, length);
- *optionName[length] = 0;
+ (*optionName)[length] = 0;
}
splitPos++;...