Skip to content
Snippets Groups Projects
Commit 6eb80f5a authored by rswindell's avatar rswindell
Browse files

A little better error reporting on bad .REP packets.

parent 1b168d76
No related branches found
No related tags found
No related merge requests found
/* Synchronet QWK replay (REP) packet unpacking routine */
// vi: tabstop=4
/* $Id$ */
......@@ -198,11 +199,13 @@ bool sbbs_t::unpack_rep(char* repfile)
errors++;
continue;
}
SAFEPRINTF3(str,"%s blocks (read '%s' at offset %ld)", msg_fname, tmp, l);
errormsg(WHERE,ERR_CHK,str,blocks);
snprintf(str, sizeof(str)-1
, "%s blocks (read '%c' at offset %ld, '%s' at offset %ld)"
, msg_fname, block[0], l, tmp, l + 116);
errormsg(WHERE, ERR_CHK, tmp, blocks, str);
errors++;
blocks=1;
continue;
continue;
}
long confnum = atol((char *)block+1);
......
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