summaryrefslogtreecommitdiffstats
path: root/contrib/file/apptype.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/file/apptype.c')
-rw-r--r--contrib/file/apptype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/file/apptype.c b/contrib/file/apptype.c
index 6f171ad..31b8095 100644
--- a/contrib/file/apptype.c
+++ b/contrib/file/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