summaryrefslogtreecommitdiff
path: root/src/gtksnippet.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-03-15 13:38:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-03-15 13:38:22 (GMT)
commit4ad9e532a78401f787f0a8a6742095512b520488 (patch)
tree2b71914a52fc930be78939362b16756efe9caa68 /src/gtksnippet.c
parenta2b767b244e03f00c6a987bbd9872796ed385f47 (diff)
Avoided to crash when analysing crackmes such as grainne.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@55 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtksnippet.c')
-rw-r--r--src/gtksnippet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gtksnippet.c b/src/gtksnippet.c
index 989e22b..bd5b3df 100644
--- a/src/gtksnippet.c
+++ b/src/gtksnippet.c
@@ -413,7 +413,8 @@ gtk_snippet_paint(GtkSnippet *snippet)
dl_list_for_each(/**/liter, snippet->lines, rendering_line *)
{
draw_rendering_line(liter, GDK_DRAWABLE(widget->window), snippet->gc,
- 2 * MARGIN_SPACE + snippet->line_height, y0);
+ MARGIN_SPACE, 2 * MARGIN_SPACE + snippet->line_height,
+ y0, snippet->line_height);
y0 += snippet->line_height;