]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-set-host-name.c
Fix error message when passing an invalid command line option (Closes #88)
[catta] / avahi-utils / avahi-set-host-name.c
index 06f532244352f3850aa0b01bc9023a1494893282..8672e4e4580cc14c521c84e37f437ef1b0b0f0f0 100644 (file)
@@ -107,7 +107,7 @@ static int parse_command_line(Config *c, int argc, char *argv[]) {
                 c->verbose = 1;
                 break;
             default:
-                fprintf(stderr, "Invalid command line argument: %c\n", o);
+                fprintf(stderr, "Invalid command line argument: %s\n", argv[optind-1]);
                 return -1;
         }
     }