A new user interface for you! Read more...

File fix-pie-percentage-overflow.patch of Package modlogan

fix buffer overflow if percent == 100
see https://bugzilla.novell.com/show_bug.cgi?id=517602
    -cboltz

diff -u -p -r -u modlogan-0.8.13_ORIG//src/output/modlogan/pic_pie.c modlogan-0.8.13/src/output/modlogan/pic_pie.c
--- modlogan-0.8.13_ORIG//src/output/modlogan/pic_pie.c	2004-03-18 02:29:43.000000000 +0100
+++ modlogan-0.8.13/src/output/modlogan/pic_pie.c	2009-11-16 13:18:57.000000000 +0100
@@ -222,7 +222,7 @@ int mplugin_modlogan_create_pie(mconfig
 		oldx2 = x2;
 		oldy2 = y2;
 
-		sprintf(numstr, "%%2d%%%% %%.%ds", IM_TEXT_LEN-5);
+		sprintf(numstr, "%%2d%%%% %%.%ds", IM_TEXT_LEN-6);
 		sprintf(str, numstr, (int)(percent * 100), graph->pairs[i]->name);
 
 		gdImageString(im, gdFontSmall, x1_tb+1, y1_tb+1, str, col_border_sh);