Package: timidity / 2.14.0-8

0001-don-t-url_unexpand_home_dir-when-opening-a-file.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 11b7b1f9b41116c1a3e1c1e82578860e3a4070b3 Mon Sep 17 00:00:00 2001
From: Joost Yervante Damad <andete@debian.org>
Date: Tue, 26 Jun 2018 22:31:15 +0200
Subject: don't url_unexpand_home_dir when opening a file

Bug-Debian: https://bugs.debian.org/327042
---
 timidity/common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/timidity/common.c b/timidity/common.c
index f24dd9a..67d2e2e 100644
--- a/timidity/common.c
+++ b/timidity/common.c
@@ -412,7 +412,8 @@ struct timidity_file *open_file(char *name, int decompress, int noise_mode)
 		return 0;
 	}
 	/* First try the given name */
-	strncpy(current_filename, url_unexpand_home_dir(name), 1023);
+	/* strncpy(current_filename, url_unexpand_home_dir(name), 1023); */
+	strncpy(current_filename, name, 1023);
 	current_filename[1023] = '\0';
 	if (noise_mode)
 		ctl->cmsg(CMSG_INFO, VERB_DEBUG, "Trying to open %s",