Commits

Anonymous committed fb5b5f8 Draft

Fixing incorrect quote usage.

Comments (0)

Files changed (1)

src/logcollector/read_ossecalert.c

         }
         if(strlen(tmp_msg) > 1596)
         {
-            tmp_msg[1594] = ".";
-            tmp_msg[1595] = ".";
-            tmp_msg[1596] = ".";
-            tmp_msg[1597] = "\0";
+            tmp_msg[1594] = '.';
+            tmp_msg[1595] = '.';
+            tmp_msg[1596] = '.';
+            tmp_msg[1597] = '\0';
         } 
         snprintf(syslog_msg, OS_SIZE_2048,
           	"ossec: Alert Level: %d; Rule: %d - %s; "