summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-05-12 17:23:22 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-05-12 17:23:22 +0000
commitf90d3d7e43ee797aba0ce283acf288c9fe779802 (patch)
treebbc93d646e86fbce47528f9520847be62c2a896b
parenteda9a8ab601a78a8fc82aee3a2bbcca4f17e7657 (diff)
no point in strncmp here; seen after question from
Pedro Bastos <pbastos@rdc.puc-rio.br>
-rw-r--r--usr.sbin/httpd/src/main/fdcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/src/main/fdcache.c b/usr.sbin/httpd/src/main/fdcache.c
index da93e9eca71..073c45d8d43 100644
--- a/usr.sbin/httpd/src/main/fdcache.c
+++ b/usr.sbin/httpd/src/main/fdcache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdcache.c,v 1.6 2003/05/12 17:20:47 henning Exp $ */
+/* $OpenBSD: fdcache.c,v 1.7 2003/05/12 17:23:21 henning Exp $ */
/*
* Copyright (c) 2002 Henning Brauer
@@ -50,7 +50,7 @@ fdcache_open(char *fn, int flags, mode_t mode)
{
struct fdcache *fdcp = NULL, *tmp = NULL;
- for (fdcp = fdc; fdcp && strncmp(fn, fdcp->fname, 1024); fdcp = fdcp->next);
+ for (fdcp = fdc; fdcp && strcmp(fn, fdcp->fname); fdcp = fdcp->next);
/* nothing */
if (fdcp == NULL) {