--- converter/other/pamtouil.c +++ converter/other/pamtouil.c @@ -94,7 +94,7 @@ /* Remove trailing "_icon" */ barPos = strrchr(cmdlineP->outname, '_'); - if (strcmp(barPos, "_icon") == 0) + if (barPos && strcmp(barPos, "_icon") == 0) *barPos = '\0'; } else { if (strcmp(cmdlineP->inputFilespec, "-") == 0)