openbsd-ports/net/silc-server/patches/patch-lib_silcutil_silcutil_c

13 lines
404 B
Plaintext

$OpenBSD: patch-lib_silcutil_silcutil_c,v 1.2 2007/04/01 20:43:59 steven Exp $
--- lib/silcutil/silcutil.c.orig Sat Nov 19 17:26:20 2005
+++ lib/silcutil/silcutil.c Sun Apr 1 22:42:28 2007
@@ -45,7 +45,7 @@ int silc_gets(char *dest, int destlen, const char *src
dest[i] = src[start];
- if (dest[i] == EOF)
+ if ((signed char)dest[i] == EOF)
return EOF;
if (dest[i] == '\n')