cerr->msg = malloc_chk(CERRMSGSIZE + 1, "cerr.msg");
if(str != NULL && strlen(str) <= CERRSTRSIZE) {
sprintf(cerr->msg, "%s: %s", str, getcerrmsg(cerr->num));
cerr->msg = malloc_chk(CERRMSGSIZE + 1, "cerr.msg");
if(str != NULL && strlen(str) <= CERRSTRSIZE) {
sprintf(cerr->msg, "%s: %s", str, getcerrmsg(cerr->num));