cgfsng: trim()

parent 81b16699
......@@ -1123,7 +1123,9 @@ static int get_existing_subsystems(char ***klist, char ***nlist)
static void trim(char *s)
{
size_t len = strlen(s);
size_t len;
len = strlen(s);
while ((len > 1) && (s[len - 1] == '\n'))
s[--len] = '\0';
}
......
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