all: Use internal MEMMEM instead gnu memem
It is used only on small strings, so it is fast enough
This commit is contained in:
1 parent
52efd5a404
commit
db4c7c1951
3 files changed
+16
-3
No files matched your search
+1
-1
@@ -262,7 +262,7 @@ int mkii_flash_image(struct usb_device_info * dev, struct image * image) {
|
||||
|
||||
for ( i = 0; bufs[i]; ++i ) {
|
||||
len = ((uint8_t*)bufs[i])[0];
|
||||
if ( memmem(bufs[i]+1, len, buf, strlen(buf)) )
|
||||
if ( MEMMEM(bufs[i]+1, len, buf, strlen(buf)) )
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user