diff options
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |