diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/delete.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/delete.c b/src/delete.c index 57235d6..3011c12 100644 --- a/src/delete.c +++ b/src/delete.c @@ -82,11 +82,14 @@ static void reset_default(const char *def_val) char tmp_val[1025]; char *ptr = index(def_val,'"'); if (ptr != NULL) { - strcpy(tmp_val,ptr); + strcpy(tmp_val,ptr+1); ptr = rindex(tmp_val,'"'); if (ptr != NULL) { *ptr = '\0'; } + else { + strcpy(tmp_val,def_val); //go with original value. + } } else { strcpy(tmp_val,def_val); |