From: Kern Sibbald Date: Tue, 8 Dec 2009 16:51:24 +0000 (+0100) Subject: More bstrncat doc X-Git-Tag: Release-3.0.3b~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48ed2fdb69ddcc9955335d99ee4b2d6ad8ddec59;p=thirdparty%2Fbacula.git More bstrncat doc --- diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index ca9524053..f253d73b5 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -115,6 +115,11 @@ char *bstrncpy(char *dest, POOL_MEM &src, int maxlen) return dest; } +/* + * Note: Here the maxlen is the maximum length permitted + * stored in dest, while on Unix systems, it is the maximum characters + * that may be copied from src. + */ char *bstrncat(char *dest, const char *src, int maxlen) { int len = strlen(dest);