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. Code cleanup.
Added debug logging in rfc2ftn to track a rare problem. Added debug logging in rfc2ftn to track a rare problem.
mbaff:
Fixed a crash when announce a empty description line.
mbdiff: mbdiff:
Code cleanup. Code cleanup.

View File

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