search for: optionlength

Displaying 1 result from an estimated 1 matches for "optionlength".

2008 Jan 31
2
[patch] fix crash in ini plugin
...644 --- 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++; optionLength = strlen (splitPos); @@ -387,7 +387,7 @@ iniParseLine (char *line, char **optionName, char **optionValue) if (*optionValue) { strncpy (*optionValue, splitPos, optionLength); - *optionValue[optionLength] = 0; + (*optionValue)[optionLength] = 0; } return TRUE; }