Fixed crash when announcing an empty description line

This commit is contained in:
Michiel Broek 2005-09-02 17:47:32 +00:00
parent 7839533555
commit 8214c98287
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,9 @@ v0.71.5 18-Aug-2005
Code cleanup.
Added debug logging in rfc2ftn to track a rare problem.
mbaff:
Fixed a crash when announce a empty description line.
mbdiff:
Code cleanup.

View File

@ -300,9 +300,11 @@ long Report(gr_list *ta, long filepos)
* Extra description lines follow
*/
for (i = 1; i < 24; i++) {
MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));
// if (strlen(T_File.LDesc[i]))
// MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));
fseek(fi, filepos2, SEEK_SET);
if (strlen(T_File.LDesc[i])) {
MacroVars("t", "s", To_Low(T_File.LDesc[i],newfiles.HiAscii));
Msg_Macro(fi);
} else {
line = calloc(MAXSTR, sizeof(char));