Bug fix of lastest commit (parse_hostport)
Missing parenthesis in memset.
This commit is contained in:
parent
40864da7c1
commit
add51536fc
@ -2,6 +2,12 @@
|
|||||||
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
|
||||||
|
@ -328,7 +328,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user