mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
This commit is contained in:
1 parent
1796965f6c
commit
0a308f64e9
2 files changed
+12
-1
No files matched your search
+8
-1
@@ -519,10 +519,17 @@ bfs_strcmp (const char *a, const char *b, grub_size_t alen)
|
||||
alen--;
|
||||
}
|
||||
|
||||
#ifdef MODE_AFS
|
||||
if (!alen)
|
||||
return - (int) (grub_uint8_t) *b;
|
||||
return - (int) (grub_int8_t) *b;
|
||||
|
||||
return (int) (grub_int8_t) *a - (int) (grub_int8_t) *b;
|
||||
#else
|
||||
if (!alen)
|
||||
return - (int) (grub_uint8_t) *b;
|
||||
|
||||
return (int) (grub_uint8_t) *a - (int) (grub_uint8_t) *b;
|
||||
#endif
|
||||
}
|
||||
|
||||
static grub_err_t
|
||||
|
||||
Reference in new issue
Block a user