Yubico/yubico-pam — pull request #6 by neverpanic (2012-01-27 23:24:45+00:00)
Title: memset on buffer with wrong size

When compiled with clang on OS X, yubico-pam emits a warning in util.c that is clearly a memset with a wrong size:

```
util.c:156:2: warning: argument to 'sizeof' in '__builtin___memset_chk' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
memset(response, 0, sizeof(response));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_string.h:77:41: note: instantiated from:
? __builtin___memset_chk (dest, val, len, __darwin_obsz0 (dest)) \
^
util.c:156:29: note: instantiated from:
memset(response, 0, sizeof(response));
~~~~~~~~ ^~~~~~~~
```

This change fixes this by replacing it with res_size, which is specified to be the size of the buffer at the caller of this function.