~ubuntu-branches/ubuntu/trusty/nast/trusty

« back to all changes in this revision

Viewing changes to debian/patches/printf-literal-format

  • Committer: Bazaar Package Importer
  • Author(s): Jakub Wilk
  • Date: 2011-03-07 23:19:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110307231918-9g0jszo1xuvf0m16
Tags: 0.2.0-5.1
* Non-maintainer upload.
* Use a string literal for the format argument in printf calls (closes:
  #614450). Thanks to Lucas Nussbaum for the bug report.
* Add a comma between ${shlibs:Depends} and ${misc:Depends}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Use a string literal for the format argument in printf calls. 
 
2
Author: Jakub Wilk <jwilk@debian.org>
 
3
Bug: http://bugs.debian.org/614450
 
4
Forwarded: no
 
5
Last-Update: 2011-03-07
 
6
 
 
7
--- a/bcount.c
 
8
+++ b/bcount.c
 
9
@@ -153,7 +153,7 @@
 
10
             else icons++;
 
11
 
 
12
              sprintf (value, "%Ld", number);
 
13
-            printf (value);
 
14
+            printf ("%s", value);
 
15
 
 
16
             /* calculate space */
 
17
             if (strlen(value) < 6) printf ("\t\t");