SF Bug Tracker id 3497714 - Buffer overflows

Fix compile error on WIN32.

Local variables must be declared first.
Remove outdated comment.

(forward port of commit 4c3532585df4af55adb661d92788915cfccf52ba)
This commit is contained in:
Yoichi NAKAYAMA 2012-03-08 01:37:03 +09:00 committed by Marcelo Roberto Jimenez
parent 5a9dbdb84e
commit 4fd84cbee1
2 changed files with 9 additions and 1 deletions

View File

@ -299,6 +299,15 @@ Version 1.8.0
Version 1.6.16
*******************************************************************************
2012-03-07 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
SF Bug Tracker id 3497714 - Buffer overflows
Fix compile error on WIN32.
Local variables must be declared first.
Remove outdated comment.
2012-03-07 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
Avoid access violation in assertion.

View File

@ -3557,7 +3557,6 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
#if EXCLUDE_GENA == 0
case SUBSCRIBE: {
UpnpEventSubscribe *evt = UpnpEventSubscribe_new();
/* Cast away constness */
UpnpString *Sid = UpnpString_new();
UpnpEventSubscribe_strcpy_PublisherUrl(evt, Param->Url);