device: Fix hwrevs_alloc_from_string

This commit is contained in:
Pali Rohár committed 2012-09-22 19:55:31 +02:00
1 parent 2127e08052
commit f6c9450319
1 file changed
+1
+1
View File
@@ -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;