From add51536fc40bdb28532669748e7cfdbeef746d8 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 5 Mar 2012 17:30:26 +0100 Subject: [PATCH] Bug fix of lastest commit (parse_hostport) Missing parenthesis in memset. --- ChangeLog | 6 ++++++ upnp/src/genlib/net/uri/uri.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f4bb1e2..eb7abc5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ Version 1.6.16 ******************************************************************************* +2012-03-05 Fabrice Fontaine + + Bug fix of lastest commit (parse_hostport) + + Missing parenthesis in memset. + 2012-03-05 Fabrice Fontaine SF Bug Tracker id 3497027 - Buffer not null terminated in parse_hostport diff --git a/upnp/src/genlib/net/uri/uri.c b/upnp/src/genlib/net/uri/uri.c index 69053a2..fcd031e 100644 --- a/upnp/src/genlib/net/uri/uri.c +++ b/upnp/src/genlib/net/uri/uri.c @@ -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;