From 5c6a7861bf4d371a16eb51e0f3a512e6b405d0b7 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sat, 27 May 2000 01:21:27 +0000 Subject: cifs parser. (This used to be commit 96fd33b8982d4d7ff1eef6f2ef836381d443b143) --- source3/aparser/templates/prs_array_remainder.tpl~ | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 source3/aparser/templates/prs_array_remainder.tpl~ (limited to 'source3/aparser/templates/prs_array_remainder.tpl~') diff --git a/source3/aparser/templates/prs_array_remainder.tpl~ b/source3/aparser/templates/prs_array_remainder.tpl~ new file mode 100644 index 0000000000..8050903f06 --- /dev/null +++ b/source3/aparser/templates/prs_array_remainder.tpl~ @@ -0,0 +1,7 @@ + { + int i; + for (i=0;ps->data_offset < ps->buffer_size;i++) { + if (!io_alloc("@ELEM@", ps, (void **)&il->@ELEM@, sizeof(*(il->@ELEM@))*(i+1)) goto fail; + if (!io_@TYPE@("@ELEM@...", ps, depth+1, &il->@ELEM@[i], @FLAGS@)) goto fail; + } + } -- cgit