diff --git a/src/device.c b/src/device.c index ca9abc2..50cc9c9 100644 --- a/src/device.c +++ b/src/device.c @@ -106,6 +106,7 @@ int16_t * hwrevs_alloc_from_string(const char * str) { i = 0; + ptr = str; while ( (ptr = strchr(ptr, ',')) ) { strncpy(buf, oldptr, ptr-oldptr); buf[4] = 0;