summaryrefslogtreecommitdiff
path: root/src/upb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upb.c')
-rw-r--r--src/upb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/upb.c b/src/upb.c
index 938c72d..bd41613 100644
--- a/src/upb.c
+++ b/src/upb.c
@@ -7,6 +7,7 @@
#include <stdarg.h>
#include <stddef.h>
+#include <string.h>
#include "upb.h"
@@ -21,3 +22,10 @@ void upb_seterr(upb_status *status, enum upb_status_code code,
va_end(args);
}
}
+
+void upb_copyerr(upb_status *to, upb_status *from)
+{
+ to->code = from->code;
+ strcpy(to->msg, from->msg);
+}
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback