Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/citrus/citrus_memstream.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- src/lib/libc/citrus/citrus_memstream.c 2008/02/09 14:56:20 1.3 +++ src/lib/libc/citrus/citrus_memstream.c 2009/02/03 05:02:12 1.4 @@ -1,4 +1,4 @@ -/* $NetBSD: citrus_memstream.c,v 1.3 2008/02/09 14:56:20 junyoung Exp $ */ +/* $NetBSD: citrus_memstream.c,v 1.4 2009/02/03 05:02:12 lukem Exp $ */ /*- * Copyright (c)2003 Citrus Project, @@ -28,7 +28,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: citrus_memstream.c,v 1.3 2008/02/09 14:56:20 junyoung Exp $"); +__RCSID("$NetBSD: citrus_memstream.c,v 1.4 2009/02/03 05:02:12 lukem Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -98,7 +98,7 @@ _citrus_memory_stream_matchline(struct _ p = _bcs_skip_ws_len(p, &len); q = _bcs_skip_nonws_len(p, &len); - if (q-p == keylen) { + if ((size_t)(q-p) == keylen) { if (iscasesensitive) { if (memcmp(key, p, keylen) == 0) break; /* match */