diff options
author | Omar Polo <op@omarpolo.com> | 2022-09-10 09:40:05 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-09-10 09:40:05 +0000 |
commit | aa9543b9fd1963d86f63fda13addb356f9039c37 (patch) | |
tree | e01438402f1c2dfd9aa5d34a54701681fcf62c68 /gmid.h | |
parent | 7277bb7dc2971fad2a51b7975df85dda1df4c936 (diff) |
make the mime types fixed-sized too
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 { |