changeset 2036:ab15b91b93d8

[gaim-migrate @ 2046] this doesn't seem to break anything and might fix something committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 16 Jun 2001 07:03:25 +0000
parents 38c06d8b7863
children 3155db0c1990
files src/gaimrc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gaimrc.c	Sat Jun 16 06:20:30 2001 +0000
+++ b/src/gaimrc.c	Sat Jun 16 07:03:25 2001 +0000
@@ -749,8 +749,7 @@
 		if (!strcmp(p->option, "sound_cmd")) {
 			g_snprintf(sound_cmd, sizeof(sound_cmd), "%s", p->value[0]);
 		} else if (!strncmp(p->option, "sound", strlen("sound"))) {
-			sscanf(p->option, "sound%c", (char *)&i);
-			i -= 'A';
+			i = p->option[strlen("sound")] - 'A';
 
 			if (p->value[0][0])
 				sound_file[i] = g_strdup(p->value[0]);