From 41c44db8370bea156ff644d179dd7539ca8996bf Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 25 Jun 2024 23:34:25 +0100 Subject: [PATCH] add MAX_LABEL_LEN macro --- src/vmrcli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vmrcli.c b/src/vmrcli.c index ad43e29..2d7a3df 100644 --- a/src/vmrcli.c +++ b/src/vmrcli.c @@ -6,6 +6,7 @@ #include "vmr.h" #define MAX_LINE 1024 +#define MAX_LABEL_LEN 512 enum { @@ -19,7 +20,7 @@ struct result union val { float f; - char s[512]; + char s[MAX_LABEL_LEN]; } val; };