summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 18:55:57 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 18:55:57 +0100
commitf2b44f582dbb9d898e6aad1db6919b5a295815be (patch)
tree4c4b495c5c063a308c19e932c14aca45e7500954 /src/config.h
parent33caee123ae6e79f251d1cd9d45ca62332e8d55b (diff)
static analysis fixes
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h4
1 files changed, 3 insertions, 1 deletions
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 "<aldrik.ramaekers@gmail.com>"