Mercurial > pidgin
comparison src/gaimrc.c @ 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 | 24aed1c31342 |
children | b66aca8e8dce |
comparison
equal
deleted
inserted
replaced
2035:38c06d8b7863 | 2036:ab15b91b93d8 |
---|---|
747 p = parse_line(buf); | 747 p = parse_line(buf); |
748 | 748 |
749 if (!strcmp(p->option, "sound_cmd")) { | 749 if (!strcmp(p->option, "sound_cmd")) { |
750 g_snprintf(sound_cmd, sizeof(sound_cmd), "%s", p->value[0]); | 750 g_snprintf(sound_cmd, sizeof(sound_cmd), "%s", p->value[0]); |
751 } else if (!strncmp(p->option, "sound", strlen("sound"))) { | 751 } else if (!strncmp(p->option, "sound", strlen("sound"))) { |
752 sscanf(p->option, "sound%c", (char *)&i); | 752 i = p->option[strlen("sound")] - 'A'; |
753 i -= 'A'; | |
754 | 753 |
755 if (p->value[0][0]) | 754 if (p->value[0][0]) |
756 sound_file[i] = g_strdup(p->value[0]); | 755 sound_file[i] = g_strdup(p->value[0]); |
757 } | 756 } |
758 } | 757 } |