extras/selfextract.c
changeset 1631 1aec60db9326
parent 1016 957c97389257
--- a/extras/selfextract.c	Sat Nov 11 08:53:23 2017 -0500
+++ b/extras/selfextract.c	Tue Feb 20 10:26:33 2018 -0500
@@ -40,14 +40,14 @@
 
     if (!PHYSFS_init(argv[0]))
     {
-        printf("PHYSFS_init() failed: %s\n", PHYSFS_getLastError());
+        printf("PHYSFS_init() failed: %s\n", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
         return 42;
     } /* if */
 
     rc = PHYSFS_addToSearchPath(argv[0], 0);
     if (!rc)
     {
-        printf("Couldn't find self-extract data: %s\n", PHYSFS_getLastError());
+        printf("Couldn't find self-extract data: %s\n", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
         printf("This might mean you didn't append a zipfile to the binary.\n");
         return 42;
     } /* if */