stringop.c: rewrite strip_whitespace

This commit is contained in:
Ian Fan 2018-12-09 11:52:55 +00:00
parent 3b4cf3718b
commit 967566e37f
5 changed files with 17 additions and 27 deletions

View file

@ -49,7 +49,7 @@ char *input_device_get_identifier(struct wlr_input_device *device) {
int vendor = device->vendor;
int product = device->product;
char *name = strdup(device->name);
name = strip_whitespace(name);
strip_whitespace(name);
char *p = name;
for (; *p; ++p) {