~ubuntu-branches/ubuntu/dapper/newt/dapper

« back to all changes in this revision

Viewing changes to debian/patches/89_input_fixes.patch

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-09-15 18:37:48 UTC
  • Revision ID: james.westby@ubuntu.com-20050915183748-uhmndnwdpc7efzqu
Tags: 0.51.6-31ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ruN newt-0.51.6-old/entry.c newt-0.51.6/entry.c
 
2
--- newt-0.51.6-old/entry.c     2005-04-14 23:34:45.753813000 +0300
 
3
+++ newt-0.51.6/entry.c 2005-04-14 23:52:07.151314236 +0300
 
4
@@ -369,7 +369,7 @@
 
5
                  *(chptr - delta) = *chptr;
 
6
                  chptr++;
 
7
               }
 
8
-              *(chptr - delta) = '\0';
 
9
+              memset(chptr - delta, 0, delta);
 
10
               en->bufUsed-=delta;
 
11
            }
 
12
        }
 
13
@@ -387,7 +387,7 @@
 
14
                *(chptr - delta) = *chptr;
 
15
                chptr++;
 
16
            }
 
17
-           *(chptr - delta) = '\0';
 
18
+           memset(chptr - delta, 0, delta);
 
19
        }
 
20
        }
 
21
        break;