Package: diction
Version: 1.10~rc4-1
Followup-For: Bug #406582
Attached is a possible patch for this bug.
The behaviour after applying this is that style ignores any sentence with a
length less than 2
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-rc8-wl (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages diction depends on:
ii libc6 2.9-4 GNU C Library: Shared libraries
diction recommends no packages.
diction suggests no packages.
-- no debconf information
*** 0001-fix-useless-assert.diff
diff -u diction-1.10~rc4.orig/style.c diction-1.10~rc4/style.c
--- diction-1.10~rc4.orig/style.c 2009-03-29 00:34:53.000000000 +1100
+++ diction-1.10~rc4/style.c 2009-03-29 00:40:40.000000000 +1100
@@ -671,9 +671,8 @@
int nom=0;
const char *s=str,*end=s+length;
- if (length==0) { ++paragraphs; return; }
+ if (length<2) { ++paragraphs; return; }
assert(str!=(const char*)0);
- assert(length>=2);
phraseEnd = (const char*)0;
while (s<end)
{
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]