More strlcat/strlcpy truncate checks.
[amitay/samba.git] / source3 / modules / vfs_scannedonly.c
index 1b35388b853f0ae0650e3df8e271e6fd3c71eabf..fcd2ed0a1c45d0b98979fe52576a813e6fbec9cc 100644 (file)
@@ -327,8 +327,9 @@ static void notify_scanner(vfs_handle_struct * handle, const char *scanfile)
        if (gsendlen + tmplen >= SENDBUFFERSIZE) {
                flush_sendbuffer(handle);
        }
-       strlcat(so->gsendbuffer, tmp, SENDBUFFERSIZE + 1);
-       strlcat(so->gsendbuffer, "\n", SENDBUFFERSIZE + 1);
+       /* FIXME ! Truncate checks... JRA. */
+       (void)strlcat(so->gsendbuffer, tmp, SENDBUFFERSIZE + 1);
+       (void)strlcat(so->gsendbuffer, "\n", SENDBUFFERSIZE + 1);
 }
 
 static bool is_scannedonly_file(struct Tscannedonly *so, const char *shortname)