examples/sessions.c: fixed wrong check for error

This commit is contained in:
Evgeny Grin (Karlson2k)
2023-09-15 09:29:20 +03:00
parent c101b159ea
commit 17b59778ea
+1 -1
View File
@@ -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,