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.


Reply via email to