diff options
-rw-r--r-- | tests/server/tftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 6014842b5..f3e521b75 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -623,7 +623,7 @@ again: /* store input protocol */ fprintf(server, "filename: %s\n", filename); - for (cp = mode; *cp; cp++) + for (cp = mode; cp && *cp; cp++) if(ISUPPER(*cp)) *cp = (char)tolower((int)*cp); |