Path: utzoo!dciem!array!colin From: colin@array.UUCP (Colin Plumb) Newsgroups: comp.std.c Subject: Re: strncat is insufficient Message-ID: <587@array.UUCP> Date: 24 Aug 90 21:12:56 GMT References: <17418@haddock.ima.isc.com> <13598@smoke.BRL.MIL> <1990Aug23.132400.3654@zorch.SF-Bay.ORG> Organization: Array Systems Computing, Inc., Toronto, Ontario, CANADA Lines: 9 char *strlimcat(char *dst, char const *src, int maxlen) { int len; len = strlen(dst); if (len < maxlen) strncpy(dst+len, src, maxlen-len); return dst; }