freebsd-ports/devel/ossp-xds/files/patch-xds.c
Alexey Dokuchaev 364dcae20b - Unbreak the build on PowerPC (at least) by always using va_copy() macro for
copying variable argument lists, not just on AMD64 (also regenerate a patch
  with `make makepatch' command)
- Simplify `check' target and rename it to our more standard `regression-test'
2015-09-04 13:07:20 +00:00

11 lines
442 B
C

--- xds.c.orig 2005-06-02 18:50:56 UTC
+++ xds.c
@@ -383,7 +383,7 @@ int xds_vencode(xds_t *xds, const char *
/* Execute the engine. */
used_buffer_size = 0;
- args_backup = args;
+ va_copy(args_backup, args);
rc = (*xds->engines[pos].engine)(
xds, xds->engines[pos].context,
xds->buffer + xds->buffer_len,