|
From: | Andreas Wehrmann |
Subject: | Re: [libmicrohttpd] Bug in largepost.c example |
Date: | Fri, 11 Dec 2015 14:51:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 12/11/2015 08:51 AM, Anton Botvalde wrote:
Hello, In the largepost.c example the iterate_post callback has a bug in fwrite - if (size > 0) { if (!fwrite (data, size, sizeof (char), con_info->fp)) return MHD_NO; } should be if (size > 0) { if (!fwrite (data, sizeof (char), size , con_info->fp)) return MHD_NO; } Kind regards, Anton Botvalde
If I'm not mistaken if shouldn't matter at all because sizeof(char) is 1 by definition.
[Prev in Thread] | Current Thread | [Next in Thread] |