Package: syrthes / 4.3.0-dfsg1-3

debug.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: I don't remember why I had to set up this patch
 but it doesn't hurt to keep it since it might save us from some segfaults.
Author: Gilles Filippini <pini@debian.org>
Index: syrthes/src/syrthes-kernel/src/manip_chaine.c
===================================================================
--- syrthes.orig/src/syrthes-kernel/src/manip_chaine.c	2013-12-16 17:33:04.000000000 +0100
+++ syrthes/src/syrthes-kernel/src/manip_chaine.c	2013-12-16 18:26:38.000000000 +0100
@@ -234,7 +234,7 @@
 	{
 	  sscanf(ch+i,"%d",ilist+*nb); 
 	  (*nb)++;
-	  while( c != ' ') {i++;c=ch[i];}
+	  while( (c) && (c != ' ')) {i++;c=ch[i];}
 	}
     }
 }