summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-09-16 16:12:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-09-16 16:12:57 +0000
commitc4c33941635a92612372b3216ce029a3b8e995f7 (patch)
treec11b65d532018504ac543ebc7d03b065062924c1 /usr.bin
parentbb407223c0b98c8e338a8571bc66eb985b737902 (diff)
Optimize space-eating loop since we've already checked that the
first char is a space. Patch from sacrificial-spam-address@horizon.com
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mail/aux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/aux.c b/usr.bin/mail/aux.c
index 0d05d35cef6..17beb8e6174 100644
--- a/usr.bin/mail/aux.c
+++ b/usr.bin/mail/aux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aux.c,v 1.17 2001/09/16 15:27:32 millert Exp $ */
+/* $OpenBSD: aux.c,v 1.18 2001/09/16 16:12:56 millert Exp $ */
/* $NetBSD: aux.c,v 1.5 1997/05/13 06:15:52 mikel Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)aux.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: aux.c,v 1.17 2001/09/16 15:27:32 millert Exp $";
+static char rcsid[] = "$OpenBSD: aux.c,v 1.18 2001/09/16 16:12:56 millert Exp $";
#endif
#endif /* not lint */
@@ -521,7 +521,7 @@ skin(name)
*cp2++ = c;
if (c == ',' && *cp == ' ' && !gotlt) {
*cp2++ = ' ';
- for (; *cp == ' '; cp++)
+ while (*++cp == ' ')
;
lastsp = 0;
bufend = cp2;