Bugzilla – Attachment 212511 Details for
Bug 375701
Desktop is "sluggish" due to missing esound
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
Patch
esound-0.2.38-multi-user.patch (text/x-patch), 1.06 KB, created by
Magnus Boman
on 2008-05-06 04:28:59 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Magnus Boman
Created:
2008-05-06 04:28:59 UTC
Size:
1.06 KB
patch
obsolete
>--- esound-0.2.36.orig/util.c >+++ esound-0.2.36/util.c >@@ -5,6 +5,7 @@ > #include <stdlib.h> > #include <string.h> > #include <unistd.h> >+#include <stdio.h> > > /* Run-time check for IPv6 support */ > int >@@ -23,22 +24,18 @@ > const char* > esd_get_socket_dirname (void) > { >- const char *audiodev; >+ const char *audiodev = NULL; > static char *dirname = NULL; > >- if (dirname == NULL) { >- if (!(audiodev = getenv("AUDIODEV"))) { >- audiodev = ""; >- } else { >- char *newdev = strrchr(audiodev, '/'); >- if (newdev != NULL) { >- audiodev = newdev++; >- } >- } >- dirname = malloc(strlen(audiodev) + sizeof("/tmp/.esd")); >- strcpy(dirname, "/tmp/.esd"); >- strcat(dirname, audiodev); >- } >+ if ((audiodev = getenv("AUDIODEV"))) { >+ char *newdev = strrchr(audiodev, '/'); >+ if (newdev != NULL) { >+ audiodev = newdev++; >+ } >+ } else >+ audiodev = ""; >+ dirname = malloc(strlen(audiodev) + 40); >+ sprintf (dirname, "/tmp/.esd%s-%i", audiodev, getuid()); > > return dirname; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 375701
:
210898
| 212511