Changeset 414:882ca9b959e6 in roaraudio for libroarpulse/util.c
- Timestamp:
- 08/10/08 11:38:03 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/util.c
r413 r414 6 6 * supported on all architectures, in which case NULL is returned. */ 7 7 char *pa_get_binary_name(char *s, size_t l) { 8 #ifdef __linux__ 9 int ret; 10 char path[PATH_MAX]; 11 12 if ( (ret = readlink("/proc/self/exe", path, PATH_MAX-1)) != -1 ) { 13 path[ret] = 0; 14 return strncpy(s, pa_path_get_filename(path), l); 15 } 16 #endif 17 8 18 return NULL; 9 19 }
Note: See TracChangeset
for help on using the changeset viewer.