mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add a few more gcc warning flags and fix quite a few problems found by doing so
This commit is contained in:
parent
047eb52b52
commit
b7026bf248
99 changed files with 810 additions and 776 deletions
|
|
@ -113,7 +113,7 @@ char *pa_xstrndup(const char *s, size_t l) {
|
|||
return NULL;
|
||||
|
||||
if ((e = memchr(s, 0, l)))
|
||||
return pa_xmemdup(s, e-s+1);
|
||||
return pa_xmemdup(s, (size_t) (e-s+1));
|
||||
|
||||
r = pa_xmalloc(l+1);
|
||||
memcpy(r, s, l);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue