aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-05-10 09:20:12 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-05-10 09:20:12 +0000
commite50f279e42909ec2ee42455a75238bcd92e49795 (patch)
tree819328237d84e2c8411138333ba4825265fdb501 /astro
parente3bc5a4162c799e8c1bc33bf8baee134042b517f (diff)
downloadports-e50f279e42909ec2ee42455a75238bcd92e49795.tar.gz
ports-e50f279e42909ec2ee42455a75238bcd92e49795.zip
Notes
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) {