libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Bug in largepost.c example


From: Anton Botvalde
Subject: [libmicrohttpd] Bug in largepost.c example
Date: Fri, 11 Dec 2015 08:51:07 +0100

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]