From 8a8b31d05cd02391ec25bd1600ee963651314cb2 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 13:09:31 +0000 Subject: [patch] Unbreak port: archivers/libcabinet This port did not build with gcc 3.3.1. I also fixed a possible buffer overflow (they used gets() to read from stdin). Please review the patch file ``patch-cftypes.cpp'' with extra care, since I am not sure whether this makes sense (2 positions in the file, marked with ``TODO'' - thanks. Also added some lines in cftypes.cpp to overcome the absence of values.h on -current. PR: ports/55767 Submitted by: Simon Barner --- archivers/libcabinet/files/patch-bstring.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 archivers/libcabinet/files/patch-bstring.cpp (limited to 'archivers/libcabinet/files/patch-bstring.cpp') diff --git a/archivers/libcabinet/files/patch-bstring.cpp b/archivers/libcabinet/files/patch-bstring.cpp new file mode 100644 index 000000000000..8a1d6e91d4f0 --- /dev/null +++ b/archivers/libcabinet/files/patch-bstring.cpp @@ -0,0 +1,11 @@ +--- bstring.cpp.orig Sun Aug 31 05:49:53 2003 ++++ bstring.cpp Sun Aug 31 05:49:53 2003 +@@ -91,7 +91,7 @@ + + b_string b_string::operator + (const char* s) + { +- b_string temp = str; ++ b_string temp (str); + return temp += s; + } + -- cgit v1.2.3