sanity check hdr_buf size

This commit is contained in:
goldsimon 2017-03-22 22:46:49 +01:00
parent 89b6fa479e
commit 8360054884

View File

@ -206,6 +206,8 @@ int main(int argc, char *argv[])
printf(" by Jim Pettinato - circa 2003 " NEWLINE);
printf(" extended by Simon Goldschmidt - 2009 " NEWLINE NEWLINE);
LWIP_ASSERT("sizeof(hdr_buf) must fit into an u16_t", sizeof(hdr_buf) <= 0xffff);
strcpy(path, "fs");
for (i = 1; i < argc; i++) {
if (argv[i] == NULL) {