summaryrefslogtreecommitdiff
path: root/archivers/libcabinet/files/patch-bstring.cpp
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-27 15:27:04 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-27 15:27:04 +0000
commite2aedd8abd3ca3fb06e9a7ca9ccb01278ff31386 (patch)
tree6f70fd9588858cfa314056ee54c090493d3fcc75 /archivers/libcabinet/files/patch-bstring.cpp
parentdevel/py-nose: Update to 1.3.3, Fix tests (diff)
Start cleaning up some of the uselessly ambigious patches named
patch-xy, and giving them proper names.
Diffstat (limited to 'archivers/libcabinet/files/patch-bstring.cpp')
-rw-r--r--archivers/libcabinet/files/patch-bstring.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/archivers/libcabinet/files/patch-bstring.cpp b/archivers/libcabinet/files/patch-bstring.cpp
index 3eabf052ae84..c4f88c8138f2 100644
--- a/archivers/libcabinet/files/patch-bstring.cpp
+++ b/archivers/libcabinet/files/patch-bstring.cpp
@@ -1,5 +1,5 @@
---- bstring.cpp.orig 2014-02-21 15:40:03.760303112 -0500
-+++ bstring.cpp 2014-02-21 15:41:19.474297650 -0500
+--- bstring.cpp.orig 2014-07-27 11:17:34.000000000 -0400
++++ bstring.cpp 2014-07-27 11:17:37.000000000 -0400
@@ -15,7 +15,7 @@
#include "bstring.h"
@@ -18,6 +18,15 @@
return temp += s;
}
+@@ -150,7 +150,7 @@
+ if(strlen(str) < strlen(s)) // If more memory is needed
+ *this = s; // Use assign function
+ else // If stpcpy can be used
+- stpcpy(str, s); // Copy s into str
++ strcpy(str, s); // Copy s into str
+ }
+
+ return *this; // Return a refrence to this object
@@ -217,4 +217,4 @@
//*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/