$OpenBSD: patch-lib_silcutil_silcutil_c,v 1.1 2005/07/05 01:40:45 brad Exp $ --- lib/silcutil/silcutil.c.orig Mon Jul 4 21:19:32 2005 +++ lib/silcutil/silcutil.c Mon Jul 4 21:20:00 2005 @@ -45,7 +45,7 @@ int silc_gets(char *dest, int destlen, c dest[i] = src[start]; - if (dest[i] == EOF) + if ((signed char)dest[i] == EOF) return EOF; if (dest[i] == '\n')