X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=main.cpp;h=8430c207134ee026bb9fcb45713eea70ee0c746e;hp=064537cd79a0572ef706e66c52106ce522f8026d;hb=92100dd95f705d079c926783c9009fbb6d8b984a;hpb=b761f0bdf520bd3f82e82c7bcdffd391159d1268 diff --git a/main.cpp b/main.cpp index 064537c..8430c20 100644 --- a/main.cpp +++ b/main.cpp @@ -275,11 +275,11 @@ int main(int argc, char **argv) char config_filename_canon[PATH_MAX]; if (realpath(argv[0], argv0_canon) == NULL) { - log_perror("realpath"); + log_perror(argv[0]); exit(1); } if (realpath(config_filename.c_str(), config_filename_canon) == NULL) { - log_perror("realpath"); + log_perror(config_filename.c_str()); exit(1); }