Menu

#6 syst_smpl.c:255: bad buffer size ?

v1.0 (example)
open
nobody
None
5
2014-10-13
2014-10-13
dcb
No

[syst_smpl.c:255]: (error) Width 99 given in format string (no. 2) is larger than destination buffer 'type[64]', use %63s to prevent overflowing it.
src/perfmon_int_wrap.c:6367:17: warning: comparison of

while (fscanf(fp, "%*s %"
            STR(MAX_PATH)
            "s %99s %*s %*d %*d\n",
            cgroup_mountpoint, type) == 2) {

Discussion


Log in to post a comment.