openbsd-ports/converters/mpack/patches/patch-decode_c
sthen 2476a2db73 update to mpack 1.6 plus various patches from Sebastian Pipping:
- SECURITY: don't create world readable files. CVE-2011-4919
- avoid conflicting prototypes
2012-01-08 00:12:12 +00:00

28 lines
854 B
Plaintext

$OpenBSD: patch-decode_c,v 1.4 2012/01/08 00:12:12 sthen Exp $
--- decode.c.orig Mon Jul 21 21:47:54 2003
+++ decode.c Sun Jan 8 00:02:59 2012
@@ -28,10 +28,11 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdlib.h>
+#include <md5.h>
#include "xmalloc.h"
#include "common.h"
#include "part.h"
-#include "md5.h"
extern char *os_idtodir(char *id);
extern FILE *os_newtypedfile(char *fname, char *contentType, int flags, params contentParams);
@@ -545,8 +546,8 @@ getDispositionFilename(char *disposition)
SkipWhitespace(&disposition);
if (!disposition) return 0;
- /* If we're looking at a ";", we found what we're looking for */
- if (*disposition++ == ';') break;
+ /* If we're looking at a "=", we found what we're looking for */
+ if (*disposition++ == '=') break;
}
SkipWhitespace(&disposition);