From b5e33d412613e3d85f0efd8f1bed46aeed759b3e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 8 Dec 2009 17:51:24 +0100 Subject: [PATCH] More bstrncat doc --- bacula/src/lib/bsys.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5