misc minor edits.
- pass string size to BLI_timestr() to avoid possible buffer overrun. - quiet warning for mingw. - include guards for windows utf conversion funcs. - fix for mistage in edge-angle-selection check. - some style cleanup.
This commit is contained in:
@@ -394,7 +394,7 @@ static int dynamicPaint_initBake(struct bContext *C, struct wmOperator *op)
|
||||
/* Format time string */
|
||||
char time_str[30];
|
||||
double time = PIL_check_seconds_timer() - timer;
|
||||
BLI_timestr(time, time_str);
|
||||
BLI_timestr(time, time_str, sizeof(time_str));
|
||||
|
||||
/* Show bake info */
|
||||
BKE_reportf(op->reports, RPT_INFO, "Bake complete! (%s)", time_str);
|
||||
|
||||
Reference in New Issue
Block a user