From f6c9450319f3fa3af3d233e10331cc28b957382c Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 22 Sep 2012 19:55:31 +0200 Subject: device: Fix hwrevs_alloc_from_string --- src/device.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3