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

Bugfix in postmsg() (used for importing messages), can't use strcpy on

non-ASCIIZ string.
parent df4b4c5d
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ void postmsg(char type, char* to, char* to_number, char* to_address,
fprintf(err_fp,"\n\7realloc(%ld) failure\n",msgtxtlen+i+1);
exit(1);
}
strcpy(msgtxt+msgtxtlen,buf);
strncpy(msgtxt+msgtxtlen,buf,i);
msgtxtlen+=i;
}
......
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