]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix unportable sizeof() usage
authorGuillem Jover <guillem@hadrons.org>
Sun, 7 Feb 2016 01:47:22 +0000 (02:47 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sun, 7 Feb 2016 08:16:47 +0000 (09:16 +0100)
commit5a32ea0a72ba9fa4275080a2a51612ae50f66dd3
tree5fa52a5c4d6a8fc2ca2cf8217975a6db9a38b585
parent2fb148a290c1677dcf09ada4379583e244a92014
Fix unportable sizeof() usage

We are calculating the size of the array, and need to pass the size of
each element, not the size of a pointer to an element. Although this
happens to be the same in many cases, this is not a portable assumption.

Warned-by: coverity
src/radixsort.c