From: ian Date: Mon, 1 Aug 2005 23:18:19 +0000 (+0000) Subject: fix bug introduced when things generalised X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=f197ba86a2645ae29a2613cf703d42c08ce8f0a9;p=trains.git fix bug introduced when things generalised --- diff --git a/hostside/main.c b/hostside/main.c index 7b6a283..1629a53 100644 --- a/hostside/main.c +++ b/hostside/main.c @@ -98,8 +98,11 @@ static void xmit_nmra_raw(void) { } static void xmit_nmra_bytes(void) { + int l; + l= buf.l; nmra_addchecksum(&buf); xmit_nmra_raw(); + buf.l= l; } int main(int argc, const char **argv) {