Skip to content
Snippets Groups Projects
Commit 61e4be67 authored by deuce's avatar deuce
Browse files

Actually do something about the error condition rather than just whine about it.

parent ece3dbe2
No related branches found
No related tags found
No related merge requests found
......@@ -678,6 +678,7 @@ static int get_prefix(char *text, int *bytes, int *len, int maxlen)
}
if(*bytes >= maxlen) {
lprintf(LOG_CRIT, "Prefix bytes %u is larger than buffer (%u) here: %*.*s",*bytes,maxlen,maxlen,maxlen,text);
*bytes=maxlen-1;
}
return(depth);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment