mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-10 18:32:35 +00:00
cgfsng: trim()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
6dfb18bf04
commit
7689dfd735
@ -1132,7 +1132,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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user