~ubuntu-branches/ubuntu/karmic/newt/karmic

« back to all changes in this revision

Viewing changes to debian/patches/030_crash_fix.patch

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-01 20:55:34 UTC
  • Revision ID: james.westby@ubuntu.com-20090401205534-l4evxb71qio7los6
Tags: 0.52.2-11.3ubuntu3
* debian/patches/030_crash_fix.patch:
  - fix crash in SetText call when topLines != 0 (LP: #352679)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ruN newt-0.52.2-old/textbox.c newt-0.52.2/textbox.c
 
2
--- newt-0.52.2-old/textbox.c   2009-04-01 20:53:12.000000000 +0200
 
3
+++ newt-0.52.2/textbox.c       2009-04-01 20:54:30.000000000 +0200
 
4
@@ -291,7 +291,7 @@
 
5
 
 
6
     if (tb->lines) {
 
7
        free(tb->lines);
 
8
-       tb->linesAlloced = tb->numLines = 0;
 
9
+       tb->linesAlloced = tb->numLines = tb->topLine = 0;
 
10
     }
 
11
 
 
12
     expanded = expandTabs(text);