software: tools: fau-tg-config: Fix "[-Werror=stringop-truncation]"
"strncat" needs the size of buffer that has to be concatenated, as its 3rd argument. In function, "int fau_write_attribute(enum fau_attribute attr, uint32_t val)" "strncat" when called for the second time is being overflowed. Fix that. The goal that this code is trying to achieve can be done in one line with "snprintf". Signed-off-by: Vaibhav Gupta <vaibhav.gupta@cern.ch> Reviewed-by: Federico Vaga <federico.vaga@cern.ch>
Showing
Please
register
or
sign in
to comment