~ubuntu-branches/ubuntu/utopic/bumprace/utopic

« back to all changes in this revision

Viewing changes to debian/patches/001_buffer-overflow.patch

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess, Joey Hess, root
  • Date: 2006-10-14 23:00:39 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20061014230039-navrufb60e95o381
Tags: 1.5.1.dfsg-2.1
[ Joey Hess ]
* NMU with patch from tbm to fix FTBFS with current gcc. Closes: #392318

[ root ]
* GNU config automated update: config.sub     (20060223 to 20060920),
  config.guess     (20060223 to 20060702)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- src/options.c-orig  2003-07-28 19:01:27.000000000 +0100
2
 
+++ src/options.c       2003-07-28 19:02:08.000000000 +0100
3
 
@@ -9,8 +9,11 @@
4
 
     char filename[200];
5
 
     FILE *file;
6
 
     
7
 
-    if ((char *)getenv("HOME") != NULL)
8
 
-       sprintf( filename, "%s/.bumprace", getenv("HOME"));
9
 
+    if ((char *)getenv("HOME") != NULL) {
10
 
+        memset( filename, '\0', sizeof(filename));
11
 
+       snprintf( filename, sizeof(filename)-1, "%s/.bumprace", 
12
 
+                 getenv("HOME"));
13
 
+    }
14
 
     else
15
 
        sprintf( filename, "bumprace.dat");
16
 
 
17
 
 
18