From f2b44f582dbb9d898e6aad1db6919b5a295815be Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 14 Mar 2024 18:55:57 +0100 Subject: static analysis fixes --- src/config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 408cf63..20e63e9 100644 --- a/src/config.h +++ b/src/config.h @@ -1,13 +1,15 @@ #pragma once #if defined(_WIN32) -#define MAX_INPUT_LENGTH 32767 +#define MAX_INPUT_LENGTH 4096 #elif defined(__linux__) #define MAX_INPUT_LENGTH 4096 #elif defined(__APPLE__) #define MAX_INPUT_LENGTH 1024 #endif +#define exit_oom() { perror("Out of memory."); exit(-1); } + #define AUTHOR "created by Aldrik Ramaekers" #define CONTACT "" -- cgit v1.2.3-70-g09d2