mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #23055 from seanm:sprintf2
* Replaced most remaining sprintf with snprintf * Deprecated encodeFormat and introduced new method that takes the buffer length * Also increased buffer size at call sites to be a little bigger, in case int is 64 bit
This commit is contained in:
@@ -208,7 +208,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf( data, "#x%02x", (uchar)c );
|
||||
snprintf( data, sizeof(buf) - (data - buf), "#x%02x", (uchar)c );
|
||||
data += 4;
|
||||
}
|
||||
*data++ = ';';
|
||||
|
||||
Reference in New Issue
Block a user