-
- Downloads
Resolve snprintf truncation warning.
.../tree/tree/src/TTree.cxx: In member function ‘virtual TFile* TTree::ChangeFile(TFile*)’: .../tree/tree/src/TTree.cxx:2642:33: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 1 and 10 [-Wformat-truncation=] snprintf(fcount,10, %s%d, uscore, fFileNumber); ^~~~~~ .../tree/tree/src/TTree.cxx:2642:33: note: directive argument in the range [-2147483648, 1] .../tree/tree/src/TTree.cxx:2642:21: note: ‘snprintf’ output between 2 and 21 bytes into a destination of size 10 snprintf(fcount,10, %s%d, uscore, fFileNumber); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .../tree/tree/src/TTree.cxx:2632:33: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size between 1 and 10 [-Wformat-truncation=] snprintf(fcount,10, %s%d, uscore, fFileNumber); ^~~~~~
Loading
Please register or sign in to comment