zwoop commented on PR #10371:
URL: https://github.com/apache/trafficserver/pull/10371#issuecomment-1707343031

   > 
/home/jenkins/workspace/Github_Builds/cmake/src/plugins/healthchecks/healthchecks.cc
   > In function 'HCDirEntry* setup_watchers(int)',
   >     inlined from 'void* hc_thread(void*)' at 
../plugins/healthchecks/healthchecks.cc:177:17:
   > ../plugins/healthchecks/healthchecks.cc:140:12: error: 'char* 
strncpy(char*, const char*, size_t)' output may be truncated copying 4095 bytes 
from a string of length 4095 [-Werror=stringop-truncation]
   >   140 |     strncpy(fname, conf->fname, MAX_PATH_LEN - 1);
   >       |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   > ../plugins/healthchecks/healthchecks.cc:140:12: error: 'char* 
strncpy(char*, const char*, size_t)' output may be truncated copying 4095 bytes 
from a string of length 4095 [-Werror=stringop-truncation]
   > cc1plus: all warnings being treated as errors
   
   Yeh, this had me stumped here for a bit, because I didn't change this part 
of the code. I have an idea now, which I'm trying.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to