Commit 526812a0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(query_predefined_aux_items): Added a missing statement so that the

	next link is followed, avoiding a crash.
parent 4d2a0043
/* /*
* $Id: aux-items.c,v 1.4 1998/07/08 16:11:37 ceder Exp $ * $Id: aux-items.c,v 1.5 1998/08/30 15:25:55 ceder Exp $
* Copyright (C) 1994, 1995, 1996 Lysator Academic Computer Association. * Copyright (C) 1994, 1995, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
# include <string.h> # include <string.h>
#endif #endif
#include <setjmp.h> #include <setjmp.h>
#include <assert.h>
#include "kom-types.h" #include "kom-types.h"
#include "manipulate.h" #include "manipulate.h"
...@@ -1157,9 +1158,11 @@ query_predefined_aux_items(Number_list *result) ...@@ -1157,9 +1158,11 @@ query_predefined_aux_items(Number_list *result)
{ {
if (def->tag != 0) if (def->tag != 0)
{ {
assert(result->length < num_aux_item_definitions);
result->data[result->length] = def->tag; result->data[result->length] = def->tag;
result->length += 1; result->length += 1;
} }
def = def->next;
} }
return OK; return OK;
......
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