[SCM] lwIP - A Lightweight TCPIP stack branch, master, updated. STABLE-2_1_0_RELEASE-177-g30b2d07

[email protected] (Dirk Ziegelmeier)
Newsgroups gmane.network.lwip.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "lwIP - A Lightweight TCPIP stack".

The branch, master has been updated
       via  30b2d073622148d52a68486855cff7c7440f0b85 (commit)
      from  ee1bab341138457b31ed6f21dc710b43f58173d6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 30b2d073622148d52a68486855cff7c7440f0b85
Author: Dirk Ziegelmeier <[email protected]>
Date:   Tue Nov 20 20:34:29 2018 +0100

    Fix compile error with GCC 8 in makefsdata
    
    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.

-----------------------------------------------------------------------

Summary of changes:
 src/apps/http/makefsdata/makefsdata.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
lwIP - A Lightweight TCPIP stack

_______________________________________________
lwip-commits mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.