ossp-pkg/xds/regression-tests/xds-decode.c 1.3 -> 1.3.2.1
--- xds-decode.c 2001/07/18 17:37:49 1.3
+++ xds-decode.c 2001/08/01 11:27:20 1.3.2.1
@@ -29,7 +29,9 @@
#include <string.h>
#include "../internal.h"
-static int dummy_engine(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args)
+static int dummy_engine(xds_t* xds, void* engine_context,
+ void* buffer, size_t buffer_size, size_t* used_buffer_size,
+ va_list* args)
{
if (xds == NULL)
{
@@ -51,6 +53,11 @@
printf("Buffer size passed to engine is zero!\n");
exit(1);
}
+ if (used_buffer_size == NULL)
+ {
+ printf("used_buffer_size passed to engine is zero!\n");
+ exit(1);
+ }
if (args == NULL)
{
printf("args pointer passed to engine is NULL!\n");
|
|