From: Kern Sibbald Date: Tue, 8 Dec 2009 16:51:24 +0000 (+0100) Subject: More bstrncat doc X-Git-Tag: Release-7.0.0~2490 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b5e33d412613e3d85f0efd8f1bed46aeed759b3e;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);