Bug fix of lastest commit (parse_hostport)
Missing parenthesis in memset. (cherry picked from commit add51536fc40bdb28532669748e7cfdbeef746d8)
This commit is contained in:
parent
898fb30183
commit
7264f892e7
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user