• Nils Goroll's avatar
    avoid a warning on gcc8 · 6dc194ff
    Nils Goroll authored
    In function ‘wadj_cfg_req.isra.1’,
        inlined from ‘vmod_random_add_backend’ at
    vmod_weightadjust.c:291:14:
    vmod_weightadjust.c:170:10: error: ‘strncpy’ output truncated before
    terminating nul copying as many bytes from a string as its length
    [-Werror=stringop-truncation]
    
    gcc does not understand that we are adding a NUL ourselves. Avoid this
    warning by a differnt but equally safe approach.
    
    Reported by volker27@gmx.at, thank you
    6dc194ff
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.am Loading commit data...
random.c Loading commit data...
vdir.c Loading commit data...
vdir.h Loading commit data...
vmod_weightadjust.c Loading commit data...
vmod_weightadjust.h Loading commit data...
vmod_weightadjust.vcc Loading commit data...
wadj_prop.h Loading commit data...
wadj_thread.c Loading commit data...
wadj_thread.h Loading commit data...