From: Kern Sibbald Date: Tue, 8 Dec 2009 16:51:24 +0000 (+0100) Subject: More bstrncat doc X-Git-Tag: Release-5.0.0~173 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72431f7a82a52a534e8797afa9c7daaec5644dc2;p=bacula%2Fbacula More bstrncat doc --- diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index 730999310f..fe86199db3 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -105,6 +105,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);