1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Merge pull request #8816 from mshabunin:sprintf-fix

Fixed snprintf for VS 2013 (#8816)

* Fixed snprintf for VS 2013

* snprintf: removed declaration from header, changed implementation

* cv_snprintf corrected according to comments

* update snprintf patch
This commit is contained in:
Maksim Shabunin
2017-06-08 22:53:16 +03:00
committed by Alexander Alekhin
parent 515e01e649
commit f71ea4dfe9
4 changed files with 30 additions and 19 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ namespace cv
}
else
{
snprintf(floatFormat, 8, "%%.%dg", std::min(precision, 20));
cv_snprintf(floatFormat, sizeof(floatFormat), "%%.%dg", std::min(precision, 20));
}
switch(mtx.depth())