Fixing an error in d6db7c555d0f11856ce5e3e479b16a4cf4689107 commit
Evt.Sid should not be cast into char* when calling sizeof otherwise size will be 4.
This commit is contained in:
parent
7ef089b09a
commit
288ef35cee
@ -2,6 +2,13 @@
|
||||
Version 1.6.16
|
||||
*******************************************************************************
|
||||
|
||||
2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
Fixing an error in d6db7c555d0f11856ce5e3e479b16a4cf4689107 commit
|
||||
|
||||
Evt.Sid should not be cast into char* when calling sizeof otherwise
|
||||
size will be 4.
|
||||
|
||||
2012-03-06 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
Removing two unused variables in ssdp_server.c
|
||||
|
@ -3463,7 +3463,7 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
||||
sizeof(Evt.PublisherUrl) - 1);
|
||||
Evt.TimeOut = Param->TimeOut;
|
||||
strncpy((char *)Evt.Sid, UpnpString_get_String(Sid),
|
||||
sizeof((char *)Evt.Sid) - 1);
|
||||
sizeof(Evt.Sid) - 1);
|
||||
Param->Fun(UPNP_EVENT_SUBSCRIBE_COMPLETE, &Evt, Param->Cookie);
|
||||
UpnpString_delete(Sid);
|
||||
UpnpString_delete(Url);
|
||||
@ -3479,7 +3479,7 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
||||
Param->Handle,
|
||||
Sid);
|
||||
strncpy((char *)Evt.Sid, UpnpString_get_String(Sid),
|
||||
sizeof((char *)Evt.Sid) - 1);
|
||||
sizeof(Evt.Sid) - 1);
|
||||
strncpy(Evt.PublisherUrl, "", sizeof(Evt.PublisherUrl) - 1);
|
||||
Evt.TimeOut = 0;
|
||||
Param->Fun(UPNP_EVENT_UNSUBSCRIBE_COMPLETE, &Evt, Param->Cookie);
|
||||
@ -3498,7 +3498,7 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
||||
&Param->TimeOut);
|
||||
Evt.TimeOut = Param->TimeOut;
|
||||
strncpy((char *)Evt.Sid, UpnpString_get_String(Sid),
|
||||
sizeof((char *)Evt.Sid) - 1);
|
||||
sizeof(Evt.Sid) - 1);
|
||||
Param->Fun(UPNP_EVENT_RENEWAL_COMPLETE, &Evt, Param->Cookie);
|
||||
UpnpString_delete(Sid);
|
||||
free(Param);
|
||||
|
Loading…
x
Reference in New Issue
Block a user