Mercurial > pidgin
comparison src/dialogs.c @ 1634:d029dc28a61e
[gaim-migrate @ 1644]
good things. patches from baldnik, aechols. still haven't put in decklin's patch, i need to get to that.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 23 Mar 2001 11:37:41 +0000 |
| parents | 1e2cc8c8bf3c |
| children | 09445224e2d9 |
comparison
equal
deleted
inserted
replaced
| 1633:f47f75819e8c | 1634:d029dc28a61e |
|---|---|
| 3716 int options; | 3716 int options; |
| 3717 guint block; | 3717 guint block; |
| 3718 | 3718 |
| 3719 string = g_string_new(""); | 3719 string = g_string_new(""); |
| 3720 | 3720 |
| 3721 g_snprintf(filename, 256, "%s/logs/%s.log", | 3721 if (name) { |
| 3722 gaim_user_dir(), normalize(name)); | 3722 char *tmp = gaim_user_dir(); |
| 3723 g_snprintf(filename, 256, "%s/logs/%s.log", tmp, normalize(name)); | |
| 3724 g_free(tmp); | |
| 3725 } else { | |
| 3726 char *tmp = gaim_user_dir(); | |
| 3727 g_snprintf(filename, 256, "%s/logs/system", tmp); | |
| 3728 g_free(tmp); | |
| 3729 } | |
| 3723 if ((fp = fopen(filename, "r")) == NULL) { | 3730 if ((fp = fopen(filename, "r")) == NULL) { |
| 3724 g_snprintf(buf, BUF_LONG, "Unable to open log file %s", filename); | 3731 g_snprintf(buf, BUF_LONG, "Unable to open log file %s", filename); |
| 3725 do_error_dialog(buf, "Error!"); | 3732 do_error_dialog(buf, "Error!"); |
| 3726 return; | 3733 return; |
| 3727 } | 3734 } |
