mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Fix build with boinc-client 5.4.X
Reported by: several
This commit is contained in:
parent
e3bc5a4162
commit
e50f279e42
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161902
18
astro/boinc-setiathome/files/patch-client-timecvt.cpp
Normal file
18
astro/boinc-setiathome/files/patch-client-timecvt.cpp
Normal file
@ -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) {
|
Loading…
Reference in New Issue
Block a user