summaryrefslogtreecommitdiff
path: root/eit.diff
blob: 57584b966a0add846f798b11b1005463805ff8fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux VDR
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.21    -> 1.22   
#	               eit.c	1.6     -> 1.7    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/04/01	aschultz@warp10.net	1.22
# fix segfault in eit.c
# --------------------------------------------
#
diff -Nru a/eit.c b/eit.c
--- a/eit.c	Mon Apr  1 14:38:00 2002
+++ b/eit.c	Mon Apr  1 14:38:00 2002
@@ -559,7 +559,7 @@
      pSubtitle = compactspace(pSubtitle);
      pExtendedDescription = compactspace(pExtendedDescription);
      // Remove superfluous hyphens:
-     if (pExtendedDescription) {
+     if (pExtendedDescription && strlen(pExtendedDescription) >= 3) {
         char *p = pExtendedDescription + 1;
         while (*p) {
               if (*p == '-' && *(p + 1) == ' ' && *(p + 2) && islower(*(p - 1)) && islower(*(p + 2))) {