Spacing / minor fixes

This commit is contained in:
Jonas Kulla 2014-04-14 09:39:23 +02:00
parent ab9464006b
commit 711060db8f
2 changed files with 12 additions and 12 deletions

View File

@ -159,7 +159,7 @@ showExcMessageBox(mrb_state *mrb, mrb_value exc)
const char *excClass = mrb_class_name(mrb, mrb_class(mrb, exc)); const char *excClass = mrb_class_name(mrb, mrb_class(mrb, exc));
char msgBoxText[512]; char msgBoxText[512];
snprintf(msgBoxText, 512, "Script '%s' line %d: %s occured.\n\n%s", snprintf(msgBoxText, sizeof(msgBoxText), "Script '%s' line %d: %s occured.\n\n%s",
mrbValueString(file), mrb_fixnum(line), excClass, mrbValueString(mesg)); mrbValueString(file), mrb_fixnum(line), excClass, mrbValueString(mesg));
shState->eThread().showMessageBox(msgBoxText, SDL_MESSAGEBOX_ERROR); shState->eThread().showMessageBox(msgBoxText, SDL_MESSAGEBOX_ERROR);