Bug fix of lastest commit (parse_hostport)

Missing parenthesis in memset.
This commit is contained in:
Fabrice Fontaine 2012-03-05 17:30:26 +01:00
parent 40864da7c1
commit add51536fc
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,12 @@
Version 1.6.16
*******************************************************************************
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Bug fix of lastest commit (parse_hostport)
Missing parenthesis in memset.
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3497027 - Buffer not null terminated in parse_hostport

View File

@ -328,7 +328,7 @@ int parse_hostport(
int ret;
memset(out, 0, sizeof(hostport_type));
memset(workbuf, 0, sizeof(workbuf);
memset(workbuf, 0, sizeof(workbuf));
/* Work on a copy of the input string. */
strncpy(workbuf, in, sizeof(workbuf) - 1);
c = workbuf;