From bad6410d08e77239fd2f4f2f64d6c5d721a5c2b3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 6 Feb 2008 17:35:17 +0000 Subject: [PATCH] Don't try to compare more than strlen chars --- tests/server/tftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index c8393a047..1c792d02d 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -665,7 +665,7 @@ static int validate_access(struct testcase *test, logmsg("trying to get file: %s mode %x", filename, mode); - if(!strncmp("verifiedserver", filename, 15)) { + if(!strncmp("verifiedserver", filename, 14)) { char weare[128]; size_t count = sprintf(weare, "WE ROOLZ: %ld\r\n", (long)getpid());