summaryrefslogtreecommitdiffstats
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 327dc5802d..63a3a2a6eb 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -272,6 +272,15 @@ bool settings_parseline(char* line, char** name, char** value)
ptr++;
ptr = skip_whitespace(ptr);
*value = ptr;
+
+ /* strip whitespace from the right side of value */
+ ptr += strlen(ptr);
+ for (ptr--; ptr >= *value; ptr--)
+ {
+ if (isspace(*ptr))
+ *ptr = '\0';
+ }
+
return true;
}