summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-10-03 19:45:34 +0000
committerderaadt <deraadt@openbsd.org>2008-10-03 19:45:34 +0000
commit83e53651a702e5fa061f13621c965e1994fadae3 (patch)
tree258f7d4cfccacb5c12b2d4f68123b6cd7ed47d8e
parentReadability changes. (diff)
downloadwireguard-openbsd-83e53651a702e5fa061f13621c965e1994fadae3.tar.xz
wireguard-openbsd-83e53651a702e5fa061f13621c965e1994fadae3.zip
NUL not NULL
-rw-r--r--bin/csh/str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/str.c b/bin/csh/str.c
index c6bede10f20..e05674ef5f8 100644
--- a/bin/csh/str.c
+++ b/bin/csh/str.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: str.c,v 1.13 2003/06/11 21:09:50 deraadt Exp $ */
+/* $OpenBSD: str.c,v 1.14 2008/10/03 19:45:34 deraadt Exp $ */
/* $NetBSD: str.c,v 1.6 1995/03/21 09:03:24 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)str.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: str.c,v 1.13 2003/06/11 21:09:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: str.c,v 1.14 2008/10/03 19:45:34 deraadt Exp $";
#endif
#endif /* not lint */
@@ -410,7 +410,7 @@ vis_str(Char *cp)
for (dp = cp; *dp++;)
continue;
- n = ((dp - cp) << 2) + 1; /* 4 times + NULL */
+ n = ((dp - cp) << 2) + 1; /* 4 times + NUL */
if (dstsize < n) {
sdst = (char *) (dstsize ?
xrealloc(sdst, (size_t) n * sizeof(char)) :