+#include <stdio.h>
+#include <string.h>
#include "../gfxdevice.h"
#include "../gfxsource.h"
#include "../devices/rescale.h"
i->filename = strdup(filename);
char*x = 0;
- if((x = strchr(filename, '|'))) {
+ if((x = strchr((char*)filename, '|'))) {
*x = 0;
userPassword = x+1;
}