~ubuntu-branches/ubuntu/trusty/rstatd/trusty

« back to all changes in this revision

Viewing changes to debian/patches/04-fix-no-format.patch

  • Committer: Package Import Robot
  • Author(s): Anibal Monsalve Salazar
  • Date: 2012-06-13 19:45:28 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120613194528-jie61l066k3qdq0l
Tags: 4.0.1-7
Enable hardened build flags
Add 04-fix-no-format.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Patch by Anibal Monsalve Salazar <anibal@debian.org>
 
2
 
 
3
diff -up a/rup.c b/rup.c
 
4
--- a/rup.c     2005-09-07 17:40:55.000000000 +1000
 
5
+++ b/rup.c     2012-06-13 19:26:16.968995915 +1000
 
6
@@ -333,7 +333,7 @@ int main(int argc, char **argv)
 
7
        while((c = getopt(argc,argv,"h?uv")) != EOF)
 
8
                switch(c) {
 
9
                        case 'v':
 
10
-                                               printf(version);
 
11
+                                               printf("%s",version);
 
12
                                                exit(0);
 
13
                        case 'u':
 
14
                                                broadcast_v5();
 
15
diff -up a/rsysinfo.c b/rsysinfo.c
 
16
--- a/rsysinfo.c        2012-06-13 19:37:06.000000000 +1000
 
17
+++ b/rsysinfo.c        2012-06-13 19:39:19.310899212 +1000
 
18
@@ -182,8 +182,8 @@ int main(int argc, char **argv)
 
19
        while((c = getopt(argc,argv,"h?v")) != EOF)
 
20
                switch(c) {
 
21
                        case 'v':
 
22
-                                               printf(version0);
 
23
-                                               printf(version);
 
24
+                                               printf("%s",version0);
 
25
+                                               printf("%s",version);
 
26
 
 
27
                                                exit(0);
 
28
                        case '?':