Skip to content

Commit

Permalink
fix warnin
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Oct 3, 2024
1 parent 6869c33 commit f19a205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coregrind/m_syswrap/syswrap-darwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,8 @@ static const HChar *kdebug_debugid(ULong did)
while (*end == ' ' || *end == '\t') {
end += 1;
}
VG_(strlcpy)((HChar*)kdebug_trace_codes[kdebug_trace_codes_count].name, end, sizeof(kdebug_trace_codes[kdebug_trace_codes_count].name));
// FIXME: gross cast!
VG_(strlcpy)((HChar*)(Addr)kdebug_trace_codes[kdebug_trace_codes_count].name, end, sizeof(kdebug_trace_codes[kdebug_trace_codes_count].name));
kdebug_trace_codes_count += 1;
start = p - rbuf + 1;
}
Expand Down

0 comments on commit f19a205

Please sign in to comment.