mirror of
https://git.busybox.net/udhcp
synced 2025-05-09 14:21:38 +08:00
small fix
This commit is contained in:
parent
2297849ef4
commit
b969dd1d22
2
files.c
2
files.c
@ -37,7 +37,7 @@ static int read_str(char *line, void *arg)
|
|||||||
|
|
||||||
/* elimate trailing whitespace */
|
/* elimate trailing whitespace */
|
||||||
for (i = strlen(*dest) - 1; i > 0 && isspace((*dest)[i]); i--);
|
for (i = strlen(*dest) - 1; i > 0 && isspace((*dest)[i]); i--);
|
||||||
(*dest)[i] = '\0';
|
(*dest)[i > 0 ? i + 1 : 0] = '\0';
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user