diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-03-26 08:09:55 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-03-26 08:09:55 +0000 |
commit | 10f69d3519037e21b125297ff9a1d2ada4b05689 (patch) | |
tree | c3cb52b820a8e4a141d1df7da121b74760a9b099 /usr.bin/cvs/log.c | |
parent | 06017e9ab1819366226e087c1fb8560116614c61 (diff) |
fix a variety of things i found at coverity. ok joris@
Diffstat (limited to 'usr.bin/cvs/log.c')
-rw-r--r-- | usr.bin/cvs/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/log.c b/usr.bin/cvs/log.c index db91c8f94a2..10875ef1ac9 100644 --- a/usr.bin/cvs/log.c +++ b/usr.bin/cvs/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.11 2005/02/22 16:22:10 jfb Exp $ */ +/* $OpenBSD: log.c,v 1.12 2005/03/26 08:09:54 tedu Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -204,7 +204,7 @@ cvs_vlog(u_int level, const char *fmt, va_list vap) char prefix[64], buf[1024], ebuf[32]; FILE *out; - if (level > LP_MAX) + if (level >= LP_MAX) return (-1); /* apply any filters */ |