[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH] to dev 14 - small bugfix
From: |
Vlad Harchev |
Subject: |
lynx-dev [PATCH] to dev 14 - small bugfix |
Date: |
Sat, 6 Nov 1999 01:42:54 +0400 (SAMT) |
* Fixed bug that corrupted memory (resulting in crashes) in situations when
line ends with LY_SOFT_HYPHEN.
Seems such situtation is rather rare (unless you view documents with ­
Oh, Klaus :)
Best regards,
-Vlad
diff -ru old/src/GridText.c fixed/src/GridText.c
--- old/src/GridText.c Thu Nov 4 00:31:17 1999
+++ fixed/src/GridText.c Sat Nov 6 01:36:30 1999
@@ -2776,10 +2776,11 @@
IS_UTF_EXTRA(*cp) ||
*cp == LY_SOFT_HYPHEN)
ctrl_chars_on_previous_line++;
- if ((previous->size > 0) &&
- (int)(previous->data[previous->size-1] == LY_SOFT_HYPHEN))
- ctrl_chars_on_previous_line--;
}
+ if ((previous->size > 0) &&
+ (int)(previous->data[previous->size-1] == LY_SOFT_HYPHEN))
+ ctrl_chars_on_previous_line--;
+
/* @@ first line indent */
spare = (LYcols-1) -
(int)style->rightIndent - indent +
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [PATCH] to dev 14 - small bugfix,
Vlad Harchev <=