From aa9543b9fd1963d86f63fda13addb356f9039c37 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 10 Sep 2022 09:40:05 +0000 Subject: make the mime types fixed-sized too --- gmid.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gmid.h') diff --git a/gmid.h b/gmid.h index 0997699..3d25403 100644 --- a/gmid.h +++ b/gmid.h @@ -70,6 +70,9 @@ #define DOMAIN_NAME_LEN (253+1) #define LABEL_LEN (63+1) +#define MEDIATYPE_NAMEMAX 128 /* file name extension */ +#define MEDIATYPE_TYPEMAX 128 /* length of type/subtype */ + #define FCGI_MAX 32 #define PROC_MAX 16 @@ -175,8 +178,8 @@ struct vhost { }; struct etm { /* extension to mime */ - char *mime; - char *ext; + char mime[MEDIATYPE_TYPEMAX]; + char ext[MEDIATYPE_NAMEMAX]; }; struct mime { -- cgit v1.2.3