libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 17b59778ea1e81b14af440fe360caef63155a910
parent c101b159ea472d6739f3eddd4cb4cf4b11fa4c09
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 15 Sep 2023 09:29:20 +0300

examples/sessions.c: fixed wrong check for error

Diffstat:
Mdoc/examples/sessions.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/sessions.c b/doc/examples/sessions.c @@ -374,7 +374,7 @@ fill_v1_v2_form (const void *cls, if (NULL == reply) return MHD_NO; /* Out-of-memory error */ - if (reply_len == snprintf (reply, + if (reply_len != snprintf (reply, ((size_t) reply_len) + 1, FORM_V1_V2, session->value_1,