aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-05-10 17:20:12 +0800
committerpav <pav@FreeBSD.org>2006-05-10 17:20:12 +0800
commit0811d23dbf4614454cf9a196a5e9c3022659501c (patch)
tree43e32860b1fee1c04a186b7cff51d944a74ea56a /astro
parentf39f04fa02078a5f4632dd5b213212233430842c (diff)
downloadfreebsd-ports-gnome-0811d23dbf4614454cf9a196a5e9c3022659501c.tar.gz
freebsd-ports-gnome-0811d23dbf4614454cf9a196a5e9c3022659501c.tar.zst
freebsd-ports-gnome-0811d23dbf4614454cf9a196a5e9c3022659501c.zip
- Fix build with boinc-client 5.4.X
Reported by: several
Diffstat (limited to 'astro')
-rw-r--r--astro/boinc-setiathome/files/patch-client-timecvt.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/astro/boinc-setiathome/files/patch-client-timecvt.cpp b/astro/boinc-setiathome/files/patch-client-timecvt.cpp
new file mode 100644
index 000000000000..c9dab2cb3f8a
--- /dev/null
+++ b/astro/boinc-setiathome/files/patch-client-timecvt.cpp
@@ -0,0 +1,18 @@
+--- client/timecvt.cpp.orig Fri Jul 2 23:21:09 2004
++++ client/timecvt.cpp Wed May 10 11:15:17 2006
+@@ -40,6 +40,15 @@
+ #include "s_util.h"
+ #include "timecvt.h"
+
++/* safe_strncpy() from boinc-client-5.2.15 lib/util.C
++ * The function got removed from boinc-client-5.4.X */
++// "safe" means the output will be null-terminated.
++//
++void safe_strncpy(char* dst, const char* src, int len) {
++ strncpy(dst, src, len);
++ dst[len-1]=0;
++}
++
+ void timecvt_start() {}
+
+ static void trim_newline(char*p) {