summarylogtreecommitdiffstats
path: root/str_replace.h
diff options
context:
space:
mode:
authorThomas Weißschuh2017-04-29 11:22:50 +0000
committerThomas Weißschuh2017-04-29 11:23:26 +0000
commitbe959fff8923cb6ebfda73c7cfc22e41315e3197 (patch)
treea0ed2ab6c90c5c41173456d72e09ac8e94a84357 /str_replace.h
parent4a18a5a34955d21f94651686eff1e70713aa2158 (diff)
downloadaur-boinc_curses.tar.gz
upgpkg: boinc_curses 0.2.3-1
upstream release
Diffstat (limited to 'str_replace.h')
-rw-r--r--str_replace.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/str_replace.h b/str_replace.h
new file mode 100644
index 000000000000..a14aa5433eb1
--- /dev/null
+++ b/str_replace.h
@@ -0,0 +1,7 @@
+// Stub for str_replace.h that is transitively used by boinc includes but not
+// shipped by boinc...
+// Only the definition of safe_strcpy is used. We don't need an implementation.
+
+size_t strlcpy(char *dst, const char *src, size_t siz);
+
+#define safe_strcpy(x, y) strlcpy(x, y, sizeof(x))