Add '!' to exit code printing message + formatting

This commit is contained in:
Johannes Maier
2024-01-12 03:56:28 +01:00
parent b56a224044
commit d0f0ea6e56

3
vuln.c
View File

@@ -275,6 +275,7 @@ uint8_t run_jit(Instruction *program, size_t len) {
int main() { int main() {
// TODO: signal handlers? SIGCHILD? seccomp? // TODO: signal handlers? SIGCHILD? seccomp?
// TODO: colors in message, just so that every is pissed :D
setbuf(stdout, NULL); setbuf(stdout, NULL);
setbuf(stdin, NULL); setbuf(stdin, NULL);
@@ -297,7 +298,7 @@ int main() {
exit_code = run_jit(program, program_len); exit_code = run_jit(program, program_len);
printf("Your program exited with %d\n", exit_code); printf("Your program exited with %d!\n", exit_code);
free(program); free(program);
} }
} }