projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3341029
)
disk/ata.c: fix signedness weirdness in ata_id_c_string()
author
H. Peter Anvin
<hpa@zytor.com>
Sun, 10 Jan 2010 21:13:56 +0000
(13:13 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Sun, 10 Jan 2010 21:13:56 +0000
(13:13 -0800)
Fix signedness weirdness in ata_id_c_string(), thus killing a warning.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/gpllib/disk/ata.c
patch
|
blob
|
history
diff --git
a/com32/gpllib/disk/ata.c
b/com32/gpllib/disk/ata.c
index
b0c2b63
..
78f669e
100644
(file)
--- a/
com32/gpllib/disk/ata.c
+++ b/
com32/gpllib/disk/ata.c
@@
-55,7
+55,7
@@
void ata_id_c_string(const uint16_t * id, unsigned char *s,
ata_id_string(id, s, ofs, len - 1);
- p = s + strnlen(s, len - 1);
+ p = s + strnlen(
(const char *)
s, len - 1);
while (p > s && p[-1] == ' ')
p--;
*p = '\0';