summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--snesgfx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2c4a9ae..04bc3b3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
snesgfx: snesgfx.c
- c99 -g -o snesgfx snesgfx.c -lpng
+ c99 -I/usr/local/include -L/usr/local/lib -g -o snesgfx snesgfx.c -lpng
clean:
rm -f snesgfx core
diff --git a/snesgfx.c b/snesgfx.c
index 3c59ed8..d19e5bb 100644
--- a/snesgfx.c
+++ b/snesgfx.c
@@ -195,7 +195,7 @@ int main(int argc, char *argv[])
int colours = 4;
char *source = NULL;
char *dest = NULL;
- char header[8] = {0};
+ unsigned char header[8] = {0};
FILE *input;
FILE *output;
png_structp png;