Commit 411fa5ac authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_output_l2g_iterator_as_text_list): Don't forget to emit

	trailing zeroes in the text-list.
parent b84a402b
/* /*
* $Id: prot-a-output.c,v 0.34 1998/08/08 21:42:06 ceder Exp $ * $Id: prot-a-output.c,v 0.35 1998/08/09 19:05:19 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association. * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
*/ */
static const char * static const char *
rcsid = "$Id: prot-a-output.c,v 0.34 1998/08/08 21:42:06 ceder Exp $"; rcsid = "$Id: prot-a-output.c,v 0.35 1998/08/09 19:05:19 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -917,7 +917,9 @@ prot_a_output_l2g_iterator_as_text_list(Connection *fp, ...@@ -917,7 +917,9 @@ prot_a_output_l2g_iterator_as_text_list(Connection *fp,
mux_printf(fp, " %lu", (unsigned long)iter->tno); mux_printf(fp, " %lu", (unsigned long)iter->tno);
++lno; ++lno;
} }
assert(lno == limit); /* Write any trailing zeroes */
for (; lno < limit; ++lno)
mux_printf(fp, " 0");
mux_printf(fp, " }"); mux_printf(fp, " }");
} }
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment