Mercurial > dwindows
diff dwtestoo.cpp @ 2951:34d16576c156
OS/2: Fix build error due to missing API, also fix buffer size warning.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 04 Jan 2023 09:45:49 +0000 |
parents | 63d7baebb0d4 |
children | afe9c20294ca |
line wrap: on
line diff
--- a/dwtestoo.cpp Tue Jan 03 22:23:08 2023 +0000 +++ b/dwtestoo.cpp Wed Jan 04 09:45:49 2023 +0000 @@ -452,10 +452,10 @@ } void MLESetFont(DW::MLE *mle, int fontsize, char *fontname) { - char font[101] = {0}; + char font[151] = {0}; if(fontname) - snprintf(font, 100, "%d.%s", fontsize, fontname); + snprintf(font, 150, "%d.%s", fontsize, fontname); mle->SetFont(fontname ? font : NULL); }