diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 00:07:29 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 00:07:29 +0000 |
| commit | 2162b2d2265b5a190e84216b529977d83162f9cc (patch) | |
| tree | ac48fd8c79dd9f0b338762a1129b83587ab3a39f /bin/csh/str.c | |
| parent | 236bb30377a429eb08bcef5e354d39c7bb40bb92 (diff) | |
Notes
Diffstat (limited to 'bin/csh/str.c')
| -rw-r--r-- | bin/csh/str.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/csh/str.c b/bin/csh/str.c index 4f4def5b7724..d30b95ef7bad 100644 --- a/bin/csh/str.c +++ b/bin/csh/str.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: str.c,v 1.2 1994/09/24 02:54:18 davidg Exp $ */ #ifndef lint @@ -449,21 +449,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); } - + |
