openbsd-ports/textproc/isearch/patches/patch-src_string_cxx
2010-05-22 11:54:14 +00:00

22 lines
643 B
Plaintext

$OpenBSD: patch-src_string_cxx,v 1.2 2010/05/22 11:54:14 espie Exp $
--- src/string.cxx.orig Wed Dec 4 22:02:10 1996
+++ src/string.cxx Sat May 22 12:55:04 2010
@@ -453,7 +453,7 @@ INT STRING::CaseEquals(const CHR* CString) const {
}
void STRING::Print() const {
- cout.write(Buffer, Length);
+ cout.write((char *)Buffer, Length);
}
void STRING::Print(PFILE FilePointer) const {
@@ -464,7 +464,7 @@ void STRING::Print(PFILE FilePointer) const {
// can this be const STRING& ?
ostream& operator<<(ostream& os, const STRING& str) {
- os.write(str.Buffer, str.Length);
+ os.write((char *)str.Buffer, str.Length);
return os;
}