AP_Bootloader: fixed strncmp bug

This commit is contained in:
Andrew Tridgell 2018-06-28 11:04:59 +10:00
parent 54dc67e2a9
commit c44a8309f9

View File

@ -283,6 +283,9 @@ int strncmp(const char *s1, const char *s2, size_t n)
s1++; s1++;
s2++; s2++;
} }
if (n == 0) {
return 0;
}
return (*s1 - *s2); return (*s1 - *s2);
} }