From c13110cf84b3a11420c195c88050c783754290dd Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Thu, 12 Jul 2018 20:47:55 +0200 Subject: [PATCH] Fix minor cppcheck warning Result is unsigned long, so we want to multiply ulong as well. --- src/cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgi.c b/src/cgi.c index 80b0349..904c207 100644 --- a/src/cgi.c +++ b/src/cgi.c @@ -179,7 +179,7 @@ formvars *cgi_process_form() /* no current support for file uploads, so limit upload data size * 1 MB should be overkill for text data */ - const unsigned long content_max = 1024 * 1024; + const unsigned long content_max = 1024UL * 1024UL; length_str = getenv("CONTENT_LENGTH"); if (! length_str || ! *length_str)