diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c index 5461d0e385d7..e9225d43f62f 100644 --- a/usr.bin/uuencode/uuencode.c +++ b/usr.bin/uuencode/uuencode.c @@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -83,7 +84,7 @@ main(int argc, char *argv[]) base64 = 0; outfile = NULL; - if (strcmp(argv[0], "b64encode") == 0) + if (strcmp(basename(argv[0]), "b64encode") == 0) base64 = 1; while ((ch = getopt(argc, argv, "mo:")) != -1) {