Display filename in case of HEX file load error
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 24 Nov 2013 18:03:16 +0000 (13:03 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 2 Dec 2013 01:49:06 +0000 (20:49 -0500)
src/hexfile.c

index 57540bc..6411166 100644 (file)
@@ -110,7 +110,7 @@ LoadHexFile(const char *filename)
        /* Trying to open the file. */
        fp = fopen(filename, "r");
        if (fp == NULL) {
-               perror(PACKAGE);
+               perror(filename);
                /*ErrorLocation(__FILE__, __LINE__);*/
                exit(EXIT_FAILURE);
        }