aboutsummaryrefslogtreecommitdiff
path: root/math/gcalctool/files/patch-gcalctool::display.c
diff options
context:
space:
mode:
authorAlexander Nedotsukov <bland@FreeBSD.org>2004-01-03 05:24:47 +0000
committerAlexander Nedotsukov <bland@FreeBSD.org>2004-01-03 05:24:47 +0000
commit040530344471cd4c838364eed7c8e97ac9ff6af5 (patch)
treee28c0955d1589304dedab04d64a4ef1a969a01db /math/gcalctool/files/patch-gcalctool::display.c
parente39c2d565646218fd895ccdf93def06cbc89f3ed (diff)
Notes
Diffstat (limited to 'math/gcalctool/files/patch-gcalctool::display.c')
-rw-r--r--math/gcalctool/files/patch-gcalctool::display.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/gcalctool/files/patch-gcalctool::display.c b/math/gcalctool/files/patch-gcalctool::display.c
new file mode 100644
index 000000000000..93ce235da0b7
--- /dev/null
+++ b/math/gcalctool/files/patch-gcalctool::display.c
@@ -0,0 +1,13 @@
+--- gcalctool/display.c.orig Sat Jan 3 13:44:50 2004
++++ gcalctool/display.c Sat Jan 3 14:01:31 2004
+@@ -88,8 +88,8 @@
+ * definitions are potentially in read-only memory, and shouldn't be adjusted.
+ */
+
+- if (strstr(str, v->tsep) != NULL) {
+- tsep_len = strlen(v->tsep);
++ tsep_len = strlen(v->tsep);
++ if (tsep_len && strstr(str, v->tsep) != NULL) {
+ while (*srcp != '\0') {
+ if (memcmp(srcp, v->tsep, tsep_len) == 0) {
+ srcp += tsep_len;