summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-09-20 20:05:04 +0200
committerQC <qball@gmpclient.org>2015-09-20 20:05:04 +0200
commit023bb23bcfc2e0139d3ba042a2eb96f57622f592 (patch)
tree43ba196f499dd00857704566b1337b54ccf551dc /source/helper.c
parent3edd66ad6b8cef016c7e4b7e84e4d2bf4e620d36 (diff)
Support \0
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/helper.c b/source/helper.c
index 2011d7e0..94b90a28 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -280,6 +280,9 @@ char helper_parse_char ( const char *arg )
else if ( arg[1] == '\\' ) {
retv = '\\';
}
+ else if ( arg[1] == '0' ) {
+ retv = '\0';
+ }
}
else if ( len > 2 && arg[0] == '\\' && arg[1] == 'x' ) {
retv = (char) strtol ( &arg[2], NULL, 16 );
@@ -475,4 +478,3 @@ void config_sanity_check ( )
config.menu_bg_alt = config.menu_bg;
}
}
-