=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/trigger.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/cvs/trigger.c 2011/05/20 19:22:47 1.20 --- src/usr.bin/cvs/trigger.c 2014/01/08 13:23:55 1.21 *************** *** 1,4 **** ! /* $OpenBSD: trigger.c,v 1.20 2011/05/20 19:22:47 nicm Exp $ */ /* * Copyright (c) 2008 Tobias Stoeckmann * Copyright (c) 2008 Jonathan Armani --- 1,4 ---- ! /* $OpenBSD: trigger.c,v 1.21 2014/01/08 13:23:55 okan Exp $ */ /* * Copyright (c) 2008 Tobias Stoeckmann * Copyright (c) 2008 Jonathan Armani *************** *** 255,261 **** } /* before doing any stuff, check if the command starts with % */ ! for (p = cmd; *p != '%' && !isspace(*p) && *p != '\0'; p++) ; if (*p == '%') return (NULL); --- 255,262 ---- } /* before doing any stuff, check if the command starts with % */ ! for (p = cmd; ! *p != '%' && !isspace((unsigned char)*p) && *p != '\0'; p++) ; if (*p == '%') return (NULL); *************** *** 416,428 **** lineno++; ! for (p = currentline; isspace(*p); p++) ; if (*p == '\0' || *p == '#') continue; ! for (q = p; !isspace(*q) && *q != '\0'; q++) ; if (*q == '\0') --- 417,429 ---- lineno++; ! for (p = currentline; isspace((unsigned char)*p); p++) ; if (*p == '\0' || *p == '#') continue; ! for (q = p; !isspace((unsigned char)*q) && *q != '\0'; q++) ; if (*q == '\0') *************** *** 431,437 **** *q++ = '\0'; regex = p; ! for (; isspace(*q); q++) ; if (*q == '\0') --- 432,438 ---- *q++ = '\0'; regex = p; ! for (; isspace((unsigned char)*q); q++) ; if (*q == '\0')