]> git.pld-linux.org Git - packages/WSoundPrefs.git/commitdiff
- patch from Conectiva (fix bad use of wstrappend; WSoundPrefs crashs when
authorkloczek <kloczek@pld-linux.org>
Wed, 24 Apr 2002 18:23:35 +0000 (18:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  playing some .wav)

Changed files:
    WSoundPrefs-wstrappend_bad_use.patch -> 1.1

WSoundPrefs-wstrappend_bad_use.patch [new file with mode: 0644]

diff --git a/WSoundPrefs-wstrappend_bad_use.patch b/WSoundPrefs-wstrappend_bad_use.patch
new file mode 100644 (file)
index 0000000..64ce7b7
--- /dev/null
@@ -0,0 +1,25 @@
+--- WSoundPrefs-1.1.1/src/SoundEvents.c.old    Mon Feb 25 17:12:50 2002
++++ WSoundPrefs-1.1.1/src/SoundEvents.c        Mon Feb 25 17:12:53 2002
+@@ -373,13 +373,9 @@
+               
+               if ((path+strlen(path)-1) != "/") {
+                       tmp = wstrappend(path, "/");
+-                      if (path)
+-                              free(path);
+                       path = tmp;
+               }
+               tmp = wstrappend(path, file);
+-              if (path)
+-                      free(path);
+               path = tmp;
+               
+               if (access(path, F_OK) == 0) {
+@@ -439,8 +435,6 @@
+               
+               if ((path+strlen(path)-1) != "/") {
+                       tmp = wstrappend(path, "/");
+-                      if (path)
+-                              free(path);
+                       path = tmp;
+               }
+               
This page took 0.098227 seconds and 4 git commands to generate.