]> git.deb.at Git - pkg/abook.git/commit
Fix "Allocator sizeof operand mismatch"
authorPeter Wu <peter@lekensteyn.nl>
Mon, 16 Feb 2015 18:41:56 +0000 (19:41 +0100)
committerRaphaël Droz <raphael.droz+floss@gmail.com>
Sun, 22 Feb 2015 00:20:42 +0000 (21:20 -0300)
commit44943895d38d31d31e3d948e681b02f3be1cc83c
treea41d87c00133708c6fde4b39a3e33c2a25fcaa35
parent6e550af8a907a680dc845c22a7d6c36d89e900c1
Fix "Allocator sizeof operand mismatch"

sizeof should be used on the data that will be stored, not the pointer.
Luckily the pointers are larger than the actual data, so there is no
security issue here.

Remove sizeof(char) as it is equal to 1 by the C standard.

Caught by Clang Static Analyzer.
abook.c
filter.c