message: Fix sw_snprintf
diff: @@ -779,7 +779,7 @@ size_t sw_snprintf(char *buf, size_t s, const char *format, ...)
  va_list args;
  va_start(args, format);
  size_t tmp_n = vsnprintf(buf, s, format, args);
  - if (tmp_n > s)
  + if (tmp_n >= s)
  {
  tmp_n = s - 1;
  buf[tmp_n] = '\0';
  