diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-09-22 19:55:31 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-09-22 19:55:31 +0200 |
commit | f6c9450319f3fa3af3d233e10331cc28b957382c (patch) | |
tree | 46a4d82e044c3ec40f2553297359b74fe9ef34a7 /src/device.c | |
parent | 2127e080529704642dd856dcd9a055bca21364ea (diff) | |
download | 0xFFFF-f6c9450319f3fa3af3d233e10331cc28b957382c.tar.bz2 |
device: Fix hwrevs_alloc_from_string
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; |