]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bsys.c
Tweak mutex order for SD
[bacula/bacula] / bacula / src / lib / bsys.c
index 7527ec412257e57a3545180c26354faeeaede86c..fe86199db3353d50c0c6bca831316ee8bc1d7eb0 100644 (file)
@@ -105,7 +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);
@@ -116,9 +120,13 @@ char *bstrncat(char *dest, const char *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, POOL_MEM &src, int maxlen)
 {
-
    int len = strlen(dest);
    if (len < maxlen-1) {
       strncpy(dest+len, src.c_str(), maxlen-len-1);