nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b105c46dd05027f2cdb551e721253b3b8319ba16
parent 6d879abedf97733273fc1011d44b26f8980d04fa
Author: Rolf Eike Beer <eike@sf-mail.de>
Date:   Mon, 11 May 2020 19:07:11 +0200

fix signedness wraparound in substdio_bput()

Diffstat:
Msubstdo.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/substdo.c b/substdo.c @@ -38,9 +38,9 @@ register substdio *s; int substdio_bput(s,buf,len) register substdio *s; register char *buf; -register int len; +register unsigned int len; { - register int n; + register unsigned int n; while (len > (n = s->n - s->p)) { byte_copy(s->x + s->p,n,buf);