Bug fix of lastest commit (parse_hostport)
Missing parenthesis in memset.
(cherry picked from commit add51536fc)
This commit is contained in:
committed by
Marcelo Roberto Jimenez
parent
898fb30183
commit
7264f892e7
@@ -299,6 +299,12 @@ Version 1.8.0
|
|||||||
Version 1.6.16
|
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>
|
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
SF Bug Tracker id 3497027 - Buffer not null terminated in parse_hostport
|
SF Bug Tracker id 3497027 - Buffer not null terminated in parse_hostport
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ int parse_hostport(
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
memset(out, 0, sizeof(hostport_type));
|
memset(out, 0, sizeof(hostport_type));
|
||||||
memset(workbuf, 0, sizeof(workbuf);
|
memset(workbuf, 0, sizeof(workbuf));
|
||||||
/* Work on a copy of the input string. */
|
/* Work on a copy of the input string. */
|
||||||
strncpy(workbuf, in, sizeof(workbuf) - 1);
|
strncpy(workbuf, in, sizeof(workbuf) - 1);
|
||||||
c = workbuf;
|
c = workbuf;
|
||||||
|
|||||||
Reference in New Issue
Block a user