Changeset c8c1426c in rtems


Ignore:
Timestamp:
Oct 6, 2020, 1:01:31 PM (10 months ago)
Author:
Frank Kühndel <frank.kuehndel@…>
Branches:
master
Children:
243d3ed5
Parents:
bc7ac71
git-author:
Frank Kühndel <frank.kuehndel@…> (10/06/20 13:01:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/10/20 13:05:41)
Message:

mghttpd/mongoose: Fix string truncation warning

This fixes the compiler warning below.

../../../cpukit/mghttpd/mongoose.c:1919:45: warning:
'.gz' directive output may be truncated writing 3 bytes into a region
of size between 1 and 255 [-Wformat-truncation=]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/mghttpd/mongoose.c

    rbc7ac71 rc8c1426c  
    18881888  char *p;
    18891889  int match_len;
    1890   char gz_path[PATH_MAX];
     1890  char gz_path[PATH_MAX + 3];
    18911891  char const* accept_encoding;
    18921892
     
    30223022  struct vec mime_vec;
    30233023  int n;
    3024   char gz_path[PATH_MAX];
     3024  char gz_path[PATH_MAX + 3];
    30253025  char const* encoding = "";
    30263026
Note: See TracChangeset for help on using the changeset viewer.