Commit b6ed727a by Vicent Martí

Merge pull request #392 from sschuberth/development

Fix a bug and GCC warning introduced in 932669b8
parents 33760f17 79a34396
...@@ -535,10 +535,8 @@ static char *cfg_readline(diskfile_backend *cfg) ...@@ -535,10 +535,8 @@ static char *cfg_readline(diskfile_backend *cfg)
memcpy(line, line_src, line_len); memcpy(line, line_src, line_len);
line[line_len] = '\0'; do line[line_len] = '\0';
while (line_len-- > 0 && isspace(line[line_len]));
while (--line_len >= 0 && isspace(line[line_len]))
line[line_len] = '\0';
if (*line_end == '\n') if (*line_end == '\n')
line_end++; line_end++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment