~ubuntu-branches/ubuntu/saucy/nano/saucy

« back to all changes in this revision

Viewing changes to debian/patches/10_browser_floating_point_exception.patch

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach
  • Date: 2009-11-16 14:05:28 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091116140528-b4ochntdqhku0k0a
Tags: 2.1.99pre1-1
* New upstream prerelease.
* The "Ferraris" release.
* Remove empty /usr/share/nano from nano-tiny.
* Drop 10_browser_floating_point_exception.patch, obsolete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Subject: Fix a floating point exception in file browser
2
 
 Applied in SVN.
3
 
Author: Chris Allegretta <chrisa@asty.org>
4
 
Origin: upstream, https://savannah.gnu.org/bugs/?24163
5
 
Forwarded: not-needed
6
 
Last-Update: 2009-10-30
7
 
--- nano/src/browser.c  (revision 4413)
8
 
+++ nano/src/browser.c  (working copy)
9
 
@@ -534,9 +534,9 @@
10
 
     }
11
 
 
12
 
     /* If width isn't initialized yet, and we've taken up only one line,
13
 
-     * it means that width is equal to (COLS % longest). */
14
 
+     * it means that width is equal to longest. */
15
 
     if (width == 0)
16
 
-       width = COLS % longest;
17
 
+       width = longest;
18
 
 }
19
 
 
20
 
 /* Determine the shortcut key corresponding to the values of kbinput