[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated (c101b159 -> e52c9e24)
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated (c101b159 -> e52c9e24) |
Date: |
Fri, 15 Sep 2023 08:30:59 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a change to branch master
in repository libmicrohttpd.
from c101b159 Fixed debug build without TLS support
new 17b59778 examples/sessions.c: fixed wrong check for error
new e52c9e24 examples/sessions.c: fixed compiler warnings
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
doc/examples/sessions.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c
index 3f60c291..2f3e6fe5 100644
--- a/doc/examples/sessions.c
+++ b/doc/examples/sessions.c
@@ -306,12 +306,12 @@ fill_v1_form (const void *cls,
if (0 > reply_len)
return MHD_NO; /* Internal error */
- reply = (char *) malloc (reply_len + 1);
+ reply = (char *) malloc ((size_t) ((size_t) reply_len + 1));
if (NULL == reply)
return MHD_NO; /* Out-of-memory error */
if (reply_len != snprintf (reply,
- ((size_t) reply_len) + 1,
+ (size_t) (((size_t) reply_len) + 1),
FORM_V1,
session->value_1))
{
@@ -370,12 +370,12 @@ fill_v1_v2_form (const void *cls,
if (0 > reply_len)
return MHD_NO; /* Internal error */
- reply = (char *) malloc (reply_len + 1);
+ reply = (char *) malloc ((size_t) ((size_t) reply_len + 1));
if (NULL == reply)
return MHD_NO; /* Out-of-memory error */
- if (reply_len == snprintf (reply,
- ((size_t) reply_len) + 1,
+ if (reply_len != snprintf (reply,
+ (size_t) ((size_t) reply_len + 1),
FORM_V1_V2,
session->value_1,
session->value_2))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (c101b159 -> e52c9e24),
gnunet <=