]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.cxx
Coverity fix
[u/mrichter/AliRoot.git] / RAW / AliRawReader.cxx
index 09b4f4a7068d65c6813756096046d374ad2b1f24..1cdf94c39c607668d22f6688b91d6aaef2f494f4 100644 (file)
@@ -680,7 +680,7 @@ void AliRawReader::DumpData(Int_t limit)
        line[pos+offset] = '.';
       }
       char hex[3];
-      sprintf(hex, "%2.2x", byte);
+      snprintf(hex, 3, "%2.2x", byte);
       line[max+max/4+3+2*pos+offset] = hex[0];
       line[max+max/4+4+2*pos+offset] = hex[1];
       pos++;