diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-18 22:27:42 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-18 22:27:42 +0000 |
commit | 862d9405b857dba35f8f2eb6d0623b9a552d4353 (patch) | |
tree | c176aed40df9d569e6997b325eceec4cbf609fb7 /apptype.c | |
parent | 00d8dd21dbcbead074383f1483d0ade146f266d9 (diff) | |
download | FreeBSD-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |