Bug fix of lastest commit (parse_hostport)

Missing parenthesis in memset.
(cherry picked from commit add51536fc40bdb28532669748e7cfdbeef746d8)
This commit is contained in:
Fabrice Fontaine 2012-03-05 17:30:26 +01:00 committed by Marcelo Roberto Jimenez
parent 898fb30183
commit 7264f892e7
2 changed files with 7 additions and 1 deletions

View File

@ -299,6 +299,12 @@ Version 1.8.0
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

@ -329,7 +329,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;