summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/gcu.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-03-18 22:53:27 +0000
committermillert <millert@openbsd.org>2015-03-18 22:53:27 +0000
commit76dd1399b55c04272a69b1d0466db0c87c219062 (patch)
treefe179e89203a38940bb133883bcedc4c3fd52c15 /sys/dev/pci/gcu.c
parentnl_langinfo() cannot return NULL; from Andre Smagin (diff)
downloadwireguard-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