debug: Use appropriate array size.

As per documentation.
This commit is contained in:
Alastair Poole 2020-01-03 14:18:09 +00:00
parent 4a64a6abaf
commit 54b8cfd4ce
2 changed files with 1 additions and 1 deletions

BIN
src/bin/.edi_debug.c.swp Normal file

Binary file not shown.

View File

@ -165,7 +165,7 @@ int edi_debug_process_id(Edi_Debug *debugger)
#elif defined(__OpenBSD__)
kvm_t *kern;
struct kinfo_proc *kp;
char errbuf[4096];
char errbuf[_POSIX2_LINE_MAX];
int pid_count;
kern = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf);