mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
Merge pull request #2 from mscherer/fix_gcc_warning
Fix gcc warning -Wsizeof-pointer-memaccess
This commit is contained in:
commit
b3a12a36d7
1 changed files with 1 additions and 1 deletions
|
@ -2023,7 +2023,7 @@ write_dns_nameenc(char *buf, size_t buflen, char *data, int datalen, char downen
|
|||
space = MIN(0xFF, buflen) - 4 - 2;
|
||||
/* -1 encoding type, -3 ".xy", -2 for safety */
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
memset(buf, 0, buflen);
|
||||
|
||||
if (downenc == 'S') {
|
||||
buf[0] = 'i';
|
||||
|
|
Loading…
Reference in a new issue