summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-09-16 16:12:56 +0000
committermillert <millert@openbsd.org>2001-09-16 16:12:56 +0000
commite76ecd7e755480ce5b75a066e3f8023233c84d06 (patch)
tree0a1466058e0ab9f994869c3ff9ae98e1cf194c6b
parent1) In skin(), only add a space after a comma if there is actually a space (diff)
downloadwireguard-openbsd-e76ecd7e755480ce5b75a066e3f8023233c84d06.tar.xz
wireguard-openbsd-e76ecd7e755480ce5b75a066e3f8023233c84d06.zip
Optimize space-eating loop since we've already checked that the
first char is a space. Patch from sacrificial-spam-address@horizon.com
-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;