comparison 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
comparison
equal deleted inserted replaced
2950:0577a97fe36d 2951:34d16576c156
450 450
451 return color; 451 return color;
452 } 452 }
453 453
454 void MLESetFont(DW::MLE *mle, int fontsize, char *fontname) { 454 void MLESetFont(DW::MLE *mle, int fontsize, char *fontname) {
455 char font[101] = {0}; 455 char font[151] = {0};
456 456
457 if(fontname) 457 if(fontname)
458 snprintf(font, 100, "%d.%s", fontsize, fontname); 458 snprintf(font, 150, "%d.%s", fontsize, fontname);
459 mle->SetFont(fontname ? font : NULL); 459 mle->SetFont(fontname ? font : NULL);
460 } 460 }
461 461
462 // Thread and Event functions 462 // Thread and Event functions
463 void UpdateMLE(DW::MLE *threadmle, const char *text, DW::Mutex *mutex) { 463 void UpdateMLE(DW::MLE *threadmle, const char *text, DW::Mutex *mutex) {