Skip to content

Commit

Permalink
Fix minor cppcheck warning
Browse files Browse the repository at this point in the history
Result is unsigned long, so we want to multiply ulong as well.
  • Loading branch information
LeSpocky committed Jul 12, 2018
1 parent 6e53089 commit c13110c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c13110c

Please sign in to comment.