summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2002-11-27 02:45:42 +0000
committerMichael Cummings <mcummings@gentoo.org>2002-11-27 02:45:42 +0000
commit2761d2a6b208c6f725608ea348485bce3d831560 (patch)
treef5f9c8b414ab3bb0fbf10bed5cd4ffbf15c90469 /app-text/sablotron/files
parentlibpng-1.2.5 fix (diff)
downloadgentoo-2-2761d2a6b208c6f725608ea348485bce3d831560.tar.gz
gentoo-2-2761d2a6b208c6f725608ea348485bce3d831560.tar.bz2
gentoo-2-2761d2a6b208c6f725608ea348485bce3d831560.zip
patch a la rajiv - thanks!
Diffstat (limited to 'app-text/sablotron/files')
-rw-r--r--app-text/sablotron/files/Sablot-0.96.1.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/app-text/sablotron/files/Sablot-0.96.1.patch b/app-text/sablotron/files/Sablot-0.96.1.patch
new file mode 100644
index 000000000000..b6a099cf7a93
--- /dev/null
+++ b/app-text/sablotron/files/Sablot-0.96.1.patch
@@ -0,0 +1,46 @@
+Index: parser.cpp
+diff -c parser.cpp:1.63 parser.cpp:1.63.2.1
+*** parser.cpp:1.63 Mon Sep 2 12:06:48 2002
+--- parser.cpp Mon Sep 9 12:39:21 2002
+***************
+*** 428,436 ****
+ if (!(firstTime && rawBuffer[0] == (char) 0xEF &&
+ rawBuffer[1] == (char) 0xBB && rawBuffer[2] == (char) 0xBF))
+ S.setCurrLine(XML_GetCurrentLineNumber(parser));
+! int code = XML_GetErrorCode(parser);
+ Str eCodeStr, eNameStr;
+! eCodeStr = code;
+ eNameStr = (char*) XML_ErrorString(code);
+ // XML_ParserFree(parser); -- done later
+ Err2T(this_, S, E_XML, eCodeStr, eNameStr);
+--- 428,436 ----
+ if (!(firstTime && rawBuffer[0] == (char) 0xEF &&
+ rawBuffer[1] == (char) 0xBB && rawBuffer[2] == (char) 0xBF))
+ S.setCurrLine(XML_GetCurrentLineNumber(parser));
+! XML_Error code = XML_GetErrorCode(parser);
+ Str eCodeStr, eNameStr;
+! eCodeStr = (int)code;
+ eNameStr = (char*) XML_ErrorString(code);
+ // XML_ParserFree(parser); -- done later
+ Err2T(this_, S, E_XML, eCodeStr, eNameStr);
+Index: situa.cpp
+diff -c situa.cpp:1.23 situa.cpp:1.23.6.1
+*** situa.cpp:1.23 Thu Jul 4 16:12:34 2002
+--- situa.cpp Mon Sep 9 13:12:12 2002
+***************
+*** 262,268 ****
+ {
+ if (l[i] > size / __numargs)
+ {
+! b[i] = new char[size / __numargs];
+ strcpy(b[i], "...");
+ strcpy(b[i] + 3, a[i] + (l[i] - size / __numargs + 3));
+ }
+--- 262,268 ----
+ {
+ if (l[i] > size / __numargs)
+ {
+! b[i] = new char[size / __numargs + 1];
+ strcpy(b[i], "...");
+ strcpy(b[i] + 3, a[i] + (l[i] - size / __numargs + 3));
+ }