summaryrefslogtreecommitdiff
path: root/usr.sbin/ctm
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-06-23 22:40:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-06-23 22:40:56 +0000
commit30cb72a00b8cc59895c391cad0f8e31611611ec4 (patch)
tree3e2f67dd80af3489363cf0596b740c6533994e40 /usr.sbin/ctm
parent325437057bbda9490b174c8fc6dc8f0e14a8f145 (diff)
Fix snprintf return value usage.
Diffstat (limited to 'usr.sbin/ctm')
-rw-r--r--usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c b/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c
index f98a70beab0..45e9c8358a3 100644
--- a/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c
+++ b/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ctm_dequeue.c,v 1.2 1997/06/24 02:52:42 dgregor Exp $
+ * $Id: ctm_dequeue.c,v 1.3 1998/06/23 22:40:33 millert Exp $
*/
/*
@@ -126,7 +126,7 @@ main(int argc, char **argv)
#undef IGNORE
#undef HASNEXT
- if (snprintf(filename, len, "%s/%s", queue_dir, ftsent->fts_name) > len)
+ if (snprintf(filename, len, "%s/%s", queue_dir, ftsent->fts_name) >= len)
err("snprintf(filename) longer than buffer");
fp = open(filename, O_RDONLY, 0);