+
+ if (full_negate == 1) {
+ debug1("full_negate alerting - file %s", file);
+ int i = 0;
+ char _b_msg[OS_SIZE_1024 + 1];
+
+ /* Generate the alert itself */
+ _b_msg[OS_SIZE_1024] = '\0';
+ snprintf(_b_msg, OS_SIZE_1024, " File: %s.",
+ file);
+
+ /* Already present */
+ if (_is_str_in_array(rootcheck.alert_msg, _b_msg)) {
+ return (1);
+ }
+
+ while (rootcheck.alert_msg[i] && (i < 255)) {
+ i++;
+ }
+
+ if (!rootcheck.alert_msg[i]) {
+ os_strdup(_b_msg, rootcheck.alert_msg[i]);
+ }
+
+ return (1);
+ }