summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wcmValidateDevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 65c6168..b3c9c61 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -345,8 +345,8 @@ input_option_new(InputOption *list, char *key, char *value)
InputOption *new;
new = calloc(1, sizeof(InputOption));
- new->key = key;
- new->value = value;
+ new->key = strdup(key);
+ new->value = strdup(value);
new->next = list;
return new;
}