Skip to content

Commit

Permalink
Fix crashes after passing through a zmodem transfer
Browse files Browse the repository at this point in the history
bug#25291
  • Loading branch information
gmsj0001 authored and alexander-naumov committed Jul 10, 2024
1 parent c737fba commit f0ecedd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Version 5.0.0 (08.07.24):
- password
* Fixes:
- Screen buffers ESC keypresses indefinitely (#57748)
- Crashes after passing through a zmodem transfer (#25291)

Version 4.9.1 (20/08/2023):
* Support stop/parity bits on serial port (#23952)
Expand Down
2 changes: 1 addition & 1 deletion src/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ static void DoCommandZmodem(struct action *act)
int i;
for (i = 0; i < 4; i++)
if (!strcmp(zmodes[i], *args))
return;
break;
if (i == 4 && !strcmp(*args, "on"))
i = 1;
if (i == 4) {
Expand Down
2 changes: 0 additions & 2 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,6 @@ static void zmodem_found(Window *p, int send, char *bp, size_t len)

void zmodem_abort(Window *p, Display *d)
{
Display *olddisplay = display;
Layer *oldflayer = flayer;
if (p) {
if (p->w_savelayer && p->w_savelayer->l_next) {
Expand All @@ -1831,7 +1830,6 @@ void zmodem_abort(Window *p, Display *d)
D_readev.condpos = D_readev.condneg = NULL;
Activate(D_fore ? D_fore->w_norefresh : 0);
}
display = olddisplay;
flayer = oldflayer;
}

Expand Down

0 comments on commit f0ecedd

Please sign in to comment.