diff options
author | Yang Tse <yangsita@gmail.com> | 2008-02-06 17:35:17 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-02-06 17:35:17 +0000 |
commit | bad6410d08e77239fd2f4f2f64d6c5d721a5c2b3 (patch) | |
tree | 5124f1bfb09aab3252caf6265a3e1adf47337ae2 /tests/server/tftpd.c | |
parent | fecb67b246a2a2dad900edaab28f4e046ef47822 (diff) |
Don't try to compare more than strlen chars
Diffstat (limited to 'tests/server/tftpd.c')
-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 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()); |