Fix parsing of ending spaces in panel config file.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Fri, 21 Feb 2014 22:42:35 +0000 (00:42 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Fri, 21 Feb 2014 22:42:35 +0000 (00:42 +0200)
src/conf.c

index 9fb222b..99554cb 100644 (file)
@@ -182,7 +182,7 @@ _skip_all:
                 break;
             size = strtol(c, &end, 10);
             while (*end == ' ' || *end == '\t')
-                c++; /* skip trailing spaces */
+                end++; /* skip trailing spaces */
             if (*end == '\0' || *end == '\n')
             {
                 s = config_setting_add(parent, name, PANEL_CONF_TYPE_INT);