Add macOS and FreeBSD support and fix DJGPP build (#48)

This commit is contained in:
techguy16
2023-07-25 18:53:42 +12:00
committed by GitHub
parent fefc8552b6
commit 20c84661b2
6 changed files with 220 additions and 153 deletions

View File

@@ -241,7 +241,7 @@ void CLI::printID(DWORD *pid) {
int i, digit = 0;
// Convert PID to ascii-number (=raw)
sprintf(raw, "%09u", pid[0]);
snprintf(raw, sizeof(raw), "%09u", pid[0]);
// Make b-part {640-....}
strncpy(b, raw, 3);