diff options
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); } - + |
