Package: diction
Version: 1.10~rc4-1
Followup-For: Bug #477748

Attached is a possible patch for this bug. It removes the assertion by 
returning rather than aborting in this case.

-- 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
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:47:20.000000000 +1100
@@ -77,7 +77,7 @@
 /*}}}*/
 static void noteHit(struct Hit *hit, int n) /*{{{*/
 {
-  assert(n>0);
+  if (n==0) return;
   if (n>hit->capacity)
   {
     if ((hit->data=realloc(hit->data,n*2*sizeof(int)))==(int*)0)

Reply via email to