Antonio,

GCC reports two warnings when compiling the set_error function in
carg_parser.c, relating to the strncpy calls on lines 99 and 100. It
appears the null terminators are not copied, which causes a
"stringop-truncation" warning. As the terminators do not need to be
copied in these cases (since they are overwritten by subsequent
calls), the GCC documentation recommends using memcpy instead of
strncpy to prevent the warning.

Cheers,
Alexander

Reply via email to