fix printf warning

This commit is contained in:
Neale Pickett 2012-03-08 16:29:23 -06:00
parent 71112ac2a7
commit cf10e1615c
1 changed files with 1 additions and 1 deletions

2
eris.c
View File

@ -181,7 +181,7 @@ not_found()
header(404, "Not Found"); header(404, "Not Found");
printf("Content-Type: text/html\r\n"); printf("Content-Type: text/html\r\n");
printf("Content-Length: %lu\r\n", sizeof msg); printf("Content-Length: %lu\r\n", (unsigned long) sizeof msg);
printf("\r\n"); printf("\r\n");
printf("%s\n", msg); /* sizeof msg includes the NULL */ printf("%s\n", msg); /* sizeof msg includes the NULL */
dolog(404, sizeof msg); dolog(404, sizeof msg);