diff options
author | 2015-03-18 22:53:27 +0000 | |
---|---|---|
committer | 2015-03-18 22:53:27 +0000 | |
commit | 76dd1399b55c04272a69b1d0466db0c87c219062 (patch) | |
tree | fe179e89203a38940bb133883bcedc4c3fd52c15 /sys/dev/pci/gcu.c | |
parent | nl_langinfo() cannot return NULL; from Andre Smagin (diff) | |
download | wireguard-openbsd-76dd1399b55c04272a69b1d0466db0c87c219062.tar.xz wireguard-openbsd-76dd1399b55c04272a69b1d0466db0c87c219062.zip |
Remove useless check for leading blanks in the month name. The
code didn't adjust len after stripping blanks so even if a month
*did* start with a blank we'd end up copying garbage at the end.
Also convert a malloc + memcpy to strdup and fix a memory leak in
the wide char version if mbstowcs() fails. From Andre Smagin
Diffstat (limited to 'sys/dev/pci/gcu.c')
0 files changed, 0 insertions, 0 deletions