mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Bootloader: fixed strncmp bug
This commit is contained in:
parent
54dc67e2a9
commit
c44a8309f9
@ -283,6 +283,9 @@ int strncmp(const char *s1, const char *s2, size_t n)
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
if (n == 0) {
|
||||
return 0;
|
||||
}
|
||||
return (*s1 - *s2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user