summaryrefslogtreecommitdiffstats
path: root/apptype.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-05-18 22:27:42 +0000
committerdelphij <delphij@FreeBSD.org>2009-05-18 22:27:42 +0000
commit862d9405b857dba35f8f2eb6d0623b9a552d4353 (patch)
treec176aed40df9d569e6997b325eceec4cbf609fb7 /apptype.c
parent00d8dd21dbcbead074383f1483d0ade146f266d9 (diff)
downloadFreeBSD-src-862d9405b857dba35f8f2eb6d0623b9a552d4353.zip
FreeBSD-src-862d9405b857dba35f8f2eb6d0623b9a552d4353.tar.gz
Virgin import of Christos Zoulas's FILE 5.03.
Security: CVE-2009-1515
Diffstat (limited to 'apptype.c')
-rw-r--r--apptype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apptype.c b/apptype.c
index 6f171ad..31b8095 100644
--- a/apptype.c
+++ b/apptype.c
@@ -27,7 +27,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: apptype.c,v 1.10 2009/02/03 20:27:51 christos Exp $")
+FILE_RCSID("@(#)$File: apptype.c,v 1.11 2009/02/04 18:24:32 christos Exp $")
#endif /* lint */
#include <stdlib.h>
@@ -76,7 +76,7 @@ file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf,
}
(void)fclose(fp);
}
- rc = DosQueryAppType(path, &type);
+ rc = DosQueryAppType((unsigned char *)path, &type);
if (fn == NULL) {
unlink(path);
OpenPOWER on IntegriCloud