aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-09-10 09:40:05 +0000
committerOmar Polo <op@omarpolo.com>2022-09-10 09:40:05 +0000
commitaa9543b9fd1963d86f63fda13addb356f9039c37 (patch)
treee01438402f1c2dfd9aa5d34a54701681fcf62c68 /gmid.h
parent7277bb7dc2971fad2a51b7975df85dda1df4c936 (diff)
make the mime types fixed-sized too
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h7
1 files changed, 5 insertions, 2 deletions
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 {