aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib/disk/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/gpllib/disk/ata.c')
-rw-r--r--com32/gpllib/disk/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/disk/ata.c b/com32/gpllib/disk/ata.c
index b0c2b63c..78f669ec 100644
--- 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';