Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpg123/files: mpg123-1.9.2-libtool.patch
Date: Tue, 01 Dec 2009 18:20:26
Message-Id: E1NFXKq-00057s-Ld@stork.gentoo.org
1 ssuominen 09/12/01 18:20:24
2
3 Added: mpg123-1.9.2-libtool.patch
4 Log:
5 Version bump wrt #294106, thanks to Shark <shark at bitchx.it> for reporting. Fix ABI handling wrt #295075, thanks to Ferret <ferret at explodingferret.com> for reporting.
6 (Portage version: 2.2_rc54/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-sound/mpg123/files/mpg123-1.9.2-libtool.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/files/mpg123-1.9.2-libtool.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/files/mpg123-1.9.2-libtool.patch?rev=1.1&content-type=text/plain
13
14 Index: mpg123-1.9.2-libtool.patch
15 ===================================================================
16 --- src/module.c
17 +++ src/module.c
18 @@ -123,13 +123,14 @@
19 goto om_bad;
20 }
21 /* Work out the path of the module to open */
22 - module_path_len = strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1;
23 + /* Note that we need to open ./file, not just file! */
24 + module_path_len = 2 + strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1;
25 module_path = malloc( module_path_len );
26 if (module_path == NULL) {
27 error1( "Failed to allocate memory for module name: %s", strerror(errno) );
28 goto om_bad;
29 }
30 - snprintf( module_path, module_path_len, "%s_%s%s", type, name, MODULE_FILE_SUFFIX );
31 + snprintf( module_path, module_path_len, "./%s_%s%s", type, name, MODULE_FILE_SUFFIX );
32 /* Display the path of the module created */
33 if(param.verbose > 1) fprintf(stderr, "Module path: %s\n", module_path );