diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2002-06-09 05:47:28 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2002-06-09 05:47:28 +0000 |
commit | aa788cfe003b0c53a76b1fb2782c50b95c665905 (patch) | |
tree | 4f31fc9073ed0abd769fa8bbb17768007717136c /bin/csh/str.c | |
parent | aaee1c091ba0c57cec98797351db4b0862b0bf1f (diff) |
knf
Diffstat (limited to 'bin/csh/str.c')
-rw-r--r-- | bin/csh/str.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/csh/str.c b/bin/csh/str.c index d00a4fe2e67..7bbc8bf5ca3 100644 --- a/bin/csh/str.c +++ b/bin/csh/str.c @@ -1,4 +1,4 @@ -/* $OpenBSD: str.c,v 1.5 2002/02/19 19:39:35 millert Exp $ */ +/* $OpenBSD: str.c,v 1.6 2002/06/09 05:47:27 todd Exp $ */ /* $NetBSD: str.c,v 1.6 1995/03/21 09:03:24 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)str.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: str.c,v 1.5 2002/02/19 19:39:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: str.c,v 1.6 2002/06/09 05:47:27 todd Exp $"; #endif #endif /* not lint */ @@ -450,21 +450,21 @@ vis_str(cp) if (cp == NULL) return (NULL); - + for (dp = cp; *dp++;) continue; n = ((dp - cp) << 2) + 1; /* 4 times + NULL */ if (dstsize < n) { - sdst = (char *) (dstsize ? + sdst = (char *) (dstsize ? xrealloc(sdst, (size_t) n * sizeof(char)) : xmalloc((size_t) n * sizeof(char))); dstsize = n; } - /* + /* * XXX: When we are in AsciiOnly we want all characters >= 0200 to * be encoded, but currently there is no way in vis to do that. */ (void) strvis(sdst, short2str(cp), VIS_NOSLASH); return (sdst); } - + |