diff options
Diffstat (limited to 'recv_image.c')
-rw-r--r-- | recv_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recv_image.c b/recv_image.c index 6d27f3b..fb8e8b3 100644 --- a/recv_image.c +++ b/recv_image.c @@ -1,4 +1,5 @@ +#define PROGRAM_NAME "recv_image" #define _XOPEN_SOURCE 500 #include <errno.h> @@ -63,7 +64,7 @@ int main(int argc, char **argv) if (argc != 4) { fprintf(stderr, "usage: %s <host> <port> <mtddev>\n", - (strrchr(argv[0], '/')?:argv[0]-1)+1); + PROGRAM_NAME); exit(1); } /* Open the device */ |