Revision 3e236955 client/util.c

View differences:

client/util.c
24 24
  int n = vsnprintf(buf, sizeof(buf), msg, args);
25 25
  if (n < 0)
26 26
    snprintf(buf, sizeof(buf), "???");
27
  if (n >= sizeof(buf))
27
  else if (n >= (int) sizeof(buf))
28 28
    snprintf(buf + sizeof(buf) - 100, 100, " ... <too long>");
29 29
  fputs(buf, stderr);
30 30
  fputc('\n', stderr);

Also available in: Unified diff