mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
examples/sessions.c: fixed wrong check for error
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user