mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
30b2d07362
lwip/lwip/src/apps/http/makefsdata/makefsdata.c:929:56: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=] snprintf(qualifiedName, sizeof(qualifiedName), "%s/%s", curSubdir, filename); /home/dziegel/lwip/lwip/src/apps/http/makefsdata/makefsdata.c:929:3: note: ‘snprintf’ output 2 or more bytes (assuming 257) into a destination of size 256 snprintf(qualifiedName, sizeof(qualifiedName), "%s/%s", curSubdir, filename); Reduce subdir string length by 3 bytes to make the warning go away. The whole file path including directory AND filename is limited to MAX_PATH_LEN - so it is reasonable to reserve 3 bytes less for directory - the filename won't fit anyway in the remaining 3 bytes. |
||
---|---|---|
.. | ||
api | ||
apps | ||
core | ||
include | ||
netif | ||
Filelists.cmake | ||
Filelists.mk | ||
FILES |