]> git.sur5r.net Git - bacula/bacula/commitdiff
More bstrncat doc
authorKern Sibbald <kern@sibbald.com>
Tue, 8 Dec 2009 16:51:24 +0000 (17:51 +0100)
committerKern Sibbald <kern@sibbald.com>
Tue, 8 Dec 2009 16:51:24 +0000 (17:51 +0100)
bacula/src/lib/bsys.c

index ca95240533b53d7ec78941fd796eef64125a8877..f253d73b54473753eb6895c9cae7bf8a03b1298d 100644 (file)
@@ -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);