|
@@ -668,8 +668,9 @@ set_option(char **options, const char *name, const char *value)
|
|
} else if (!strcmp(options[2 * i], name)) {
|
|
} else if (!strcmp(options[2 * i], name)) {
|
|
if (multi_sep) {
|
|
if (multi_sep) {
|
|
/* Option already set. Overwrite */
|
|
/* Option already set. Overwrite */
|
|
- char *s = (char *)malloc(strlen(options[2 * i + 1]) + strlen(multi_sep)
|
|
|
|
- + strlen(value) + 1);
|
|
|
|
|
|
+ char *s =
|
|
|
|
+ (char *)malloc(strlen(options[2 * i + 1])
|
|
|
|
+ + strlen(multi_sep) + strlen(value) + 1);
|
|
if (!s) {
|
|
if (!s) {
|
|
die("Out of memory");
|
|
die("Out of memory");
|
|
}
|
|
}
|