summarylogtreecommitdiffstats
path: root/fix-openflow-strlcpy.patch
diff options
context:
space:
mode:
authorkyechou2023-11-20 21:26:48 -0600
committerkyechou2023-11-20 21:26:48 -0600
commit485b346c6464847b270d6be5f03423302762d4d4 (patch)
tree60dab4f385ad1baaae50de74449c821433f6a902 /fix-openflow-strlcpy.patch
parent0a8b9afe6be77178bcdc4d2981d82707e36b9d48 (diff)
downloadaur-containernet-git.tar.gz
Fix strlcpy issue and update dependencies
Diffstat (limited to 'fix-openflow-strlcpy.patch')
-rw-r--r--fix-openflow-strlcpy.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/fix-openflow-strlcpy.patch b/fix-openflow-strlcpy.patch
new file mode 100644
index 000000000000..3a007cff28b5
--- /dev/null
+++ b/fix-openflow-strlcpy.patch
@@ -0,0 +1,26 @@
+diff --git a/lib/util.c b/lib/util.c
+index 21cc28d..67ba765 100644
+--- a/lib/util.c
++++ b/lib/util.c
+@@ -138,7 +138,7 @@ xasprintf(const char *format, ...)
+ return s;
+ }
+
+-void
++size_t
+ strlcpy(char *dst, const char *src, size_t size)
+ {
+ if (size > 0) {
+diff --git a/lib/util.h b/lib/util.h
+index fde681f..efb0df9 100644
+--- a/lib/util.h
++++ b/lib/util.h
+@@ -106,7 +106,7 @@ char *xvasprintf(const char *format, va_list) PRINTF_FORMAT(1, 0) MALLOC_LIKE;
+ void *x2nrealloc(void *p, size_t *n, size_t s);
+
+ #ifndef HAVE_STRLCPY
+-void strlcpy(char *dst, const char *src, size_t size);
++size_t strlcpy(char *dst, const char *src, size_t size);
+ #endif
+
+ void ofp_fatal(int err_no, const char *format, ...)