=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/uniq/uniq.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/uniq/uniq.c 2009/10/27 23:59:46 1.18 --- src/usr.bin/uniq/uniq.c 2013/11/26 19:25:39 1.19 *************** *** 1,4 **** ! /* $OpenBSD: uniq.c,v 1.18 2009/10/27 23:59:46 deraadt Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: uniq.c,v 1.19 2013/11/26 19:25:39 deraadt Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* *************** *** 173,181 **** int nchars, nfields; for (nfields = numfields; nfields && *str; nfields--) { ! while (isblank(*str)) str++; ! while (*str && !isblank(*str)) str++; } for (nchars = numchars; nchars-- && *str && *str != '\n'; ++str) --- 173,181 ---- int nchars, nfields; for (nfields = numfields; nfields && *str; nfields--) { ! while (isblank((unsigned char)*str)) str++; ! while (*str && !isblank((unsigned char)*str)) str++; } for (nchars = numchars; nchars-- && *str && *str != '\n'; ++str)