diff options
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 4c32f8b..c9d1b13 100644 --- a/src/service.c +++ b/src/service.c @@ -367,7 +367,7 @@ get_os_release (void) val = g_string_new(in); for (i=0; i<val->len; ) { - if (val->str[i]=='\\' && ((i+1)<val->len)) /* unescape */ + if (val->str[i]=='\\' && ((i+1)<val->len)) /* unescape: skip 1, keep 1 */ g_string_erase (val, i++, 1); else if ((val->str[i]=='\'') || (val->str[i]=='"') || (val->str[i]=='\n')) /* skip */ |