Explorar el Código

* Trim out an extra space when sending logs between hubs

Bryan Drewery hace 16 años
padre
commit
49bc2bea58
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/botmsg.c

+ 1 - 1
src/botmsg.c

@@ -322,7 +322,7 @@ void botnet_send_log(int idx, const char *from, int type, const char *msg, bool
   size_t len;
   // Cut out timestamp
   if (truncate_ts)
-    len = simple_snprintf(OBUF, sizeof(OBUF), "lo %s %d %s\n", from, type, &msg[LOG_TS_LEN]);
+    len = simple_snprintf(OBUF, sizeof(OBUF), "lo %s %d %s\n", from, type, &msg[LOG_TS_LEN + 1]); //+1 due to excess space
   else
     len = simple_snprintf(OBUF, sizeof(OBUF), "lo %s %d %s\n", from, type, msg);