~ubuntu-branches/ubuntu/utopic/ggz-client-libs/utopic

« back to all changes in this revision

Viewing changes to debian/patches/ggz-config-noregistry-fix.patch

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2011-04-02 18:32:07 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110402183207-01fvnbdbe5e7m0f1
Tags: 0.0.14.1-1.1
* Non-maintainer upload.
* Empty depency_libs in libtool la file. Closes: #610128
  http://wiki.debian.org/ReleaseGoals/LAFileRemoval

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -Nur -x '*.orig' -x '*~' ggz-client-libs-0.0.14.1/ggz-config/ggz-config.c ggz-client-libs-0.0.14.1.new/ggz-config/ggz-config.c
2
 
--- ggz-client-libs-0.0.14.1/ggz-config/ggz-config.c    2008-01-06 06:02:46.000000000 +1100
3
 
+++ ggz-client-libs-0.0.14.1.new/ggz-config/ggz-config.c        2008-09-27 23:58:53.000000000 +1000
4
 
@@ -455,6 +455,10 @@
5
 
                             + strlen(copydir)
6
 
                             + strlen(modname)
7
 
                             + strlen(suffix) + 3];
8
 
+       char new_pathname[(moddest ? strlen(destdir) : 0)
9
 
+                            + strlen(copydir)
10
 
+                            + strlen(modname)
11
 
+                            + strlen(suffix) + 3];
12
 
        char fixedmodname[strlen(modname) + 1];
13
 
        unsigned int i;
14
 
 
15
 
@@ -473,10 +477,10 @@
16
 
        for(i = 0; i < strlen(fixedmodname); i++) {
17
 
                if(fixedmodname[i] == '/') fixedmodname[i] = '_';
18
 
        }
19
 
-       sprintf(global_pathname, "%s/%s%s", global_pathname, fixedmodname, suffix);
20
 
+       sprintf(new_pathname, "%s/%s%s", global_pathname, fixedmodname, suffix);
21
 
 
22
 
-       printf(_("Preserving %s as %s...\n"), modfile, global_pathname);
23
 
-       return filecopy(modfile, global_pathname);
24
 
+       printf(_("Preserving %s as %s...\n"), modfile, new_pathname);
25
 
+       return filecopy(modfile, new_pathname);
26
 
 }
27
 
 
28