Remove SIZEOF_MISTACH error in notify_send_and_recv

Replace sizeof(CRLF) by strlen(CRLF) as CRLF is a const char*.
(cherry picked from commit cec9d55c4c82384333ecfad6c7c8d51fd07cc5dc)
This commit is contained in:
Fabrice Fontaine 2012-03-07 14:30:37 +01:00 committed by Marcelo Roberto Jimenez
parent 6f64448cae
commit 0b2a4e580e
2 changed files with 7 additions and 1 deletions

View File

@ -299,6 +299,12 @@ Version 1.8.0
Version 1.6.16 Version 1.6.16
******************************************************************************* *******************************************************************************
2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Remove SIZEOF_MISTACH error in notify_send_and_recv
Replace sizeof(CRLF) by strlen(CRLF) as CRLF is a const char*.
2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com> 2012-03-07 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3498442 - Memory leak in get_file_info SF Bug Tracker id 3498442 - Memory leak in get_file_info

View File

@ -211,7 +211,7 @@ static UPNP_INLINE int notify_send_and_recv(
"bbb", "bbb",
start_msg.buf, start_msg.length, start_msg.buf, start_msg.length,
propertySet, strlen(propertySet), propertySet, strlen(propertySet),
CRLF, sizeof CRLF); CRLF, strlen(CRLF));
if (ret_code) { if (ret_code) {
membuffer_destroy(&start_msg); membuffer_destroy(&start_msg);
sock_destroy(&info, SD_BOTH); sock_destroy(&info, SD_BOTH);