diff --git a/src/main.c b/src/main.c index 35c8dda..cee6343 100644 --- a/src/main.c +++ b/src/main.c @@ -9,6 +9,7 @@ #include #include #include +#include "errno.h" #include "sound.h" #include "common.h" @@ -267,8 +268,11 @@ int main(int argc, char **argv) case XMP_ERROR_LOAD: msg = "Error loading module"; break; + case XMP_ERROR_SYSTEM: + msg = strerror(errno); + break; default: - msg = strerror(val); + msg = "Unknown error"; } fprintf(stderr, "%s: %s: %s\n", argv[0],