In netloader_error(), use same msgbox width/height as main() since 'OK' wasn't displayed properly. Also use snprintf instead of sprintf in netloader_error().
This commit is contained in:
parent
f738578dc1
commit
8506e1b316
@ -54,9 +54,9 @@ static void netloader_error(const char *func, int err) {
|
|||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
char errortext[1024];
|
char errortext[1024];
|
||||||
|
|
||||||
sprintf(errortext, "%s: err=%d\n %s\n", func, err, strerror(errno));
|
snprintf(errortext, sizeof(errortext)-1, "%s: err=%d\n %s\n", func, err, strerror(errno));
|
||||||
|
|
||||||
menuCreateMsgBox(640,480, errortext);
|
menuCreateMsgBox(780,300, errortext);
|
||||||
|
|
||||||
netloader_deactivate();
|
netloader_deactivate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user