Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 4f1b1bf6 authored by rswindell's avatar rswindell

Using SAFECOPY macro for bounds-checked strcpy's.

parent 445ca2d1
......@@ -1653,7 +1653,7 @@ bool sbbs_t::guruexp(char **ptrptr, char *line)
while((**ptrptr)!=')' && (**ptrptr)) {
if((**ptrptr)=='[') {
(*ptrptr)++;
sprintf(str,"%.128s",*ptrptr);
SAFECOPY(str,*ptrptr);
while(**ptrptr && (**ptrptr)!=']')
(*ptrptr)++;
(*ptrptr)++;
......
......@@ -3773,7 +3773,7 @@ int main(int argc, char **argv)
char packet[MAX_PATH+1];
char ch,str[1025],fname[256],path[512],sub_code[9]
,*p,*tp
,areatagstr[129],outbound[128]
,areatagstr[128],outbound[128]
,password[16];
uchar HUGE16 *fmsgbuf=NULL;
ushort attr;
......@@ -4333,7 +4333,7 @@ int main(int argc, char **argv)
p+=5; /* Skip "AREA:" */
while(*p && *p<=SP) p++; /* Skip any white space */
printf("%21s: ",p); /* Show areaname: */
sprintf(areatagstr,"%.128s",p);
SAFECOPY(areatagstr,p);
strupr(p);
areatag=crc32(p,0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment