aboutsummaryrefslogtreecommitdiff
path: root/audio/libjackasyn/files/patch-libjackasyn.c
blob: 98bf9760a12325372e4976a8af2061a2366f808e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- libjackasyn.c	Tue Aug 24 08:29:32 2004
+++ libjackasyn.c	Thu Apr  6 12:09:57 2006
@@ -47,9 +47,9 @@
     fprintf(stderr,"libjackasyn: cannot get application name\n");
     return NULL;
   }
-  n = namefield + strlen("Name: ");
+  n = namefield;
   len=0;
-  while (*(n+len) != '\n' && len < 255) len++;
+  while (*(n+len) != ' ' && len < 255) len++;
   if (len >= 255) {
     fprintf(stderr,"libjackasyn: cannot get process name\n");
     return NULL;
@@ -58,7 +58,7 @@
   pname = malloc(len+2);
   n[len]='\0';
   sprintf(pname,"%s_%d",n,num);
-  
+
   return pname;
 }