device: Fix hwrevs_alloc_from_string
This commit is contained in:
1 parent
2127e08052
commit
f6c9450319
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user