Mercurial > pidgin.yaz
comparison src/dialogs.c @ 122:521db4bf5f28
[gaim-migrate @ 132]
Fixed bug where if you erase your user info it segfaults.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 16 Apr 2000 00:57:38 +0000 |
parents | 51943f1a97a0 |
children | fe81c8b4951d |
comparison
equal
deleted
inserted
replaced
121:3571b593f423 | 122:521db4bf5f28 |
---|---|
896 g_snprintf(current_user->user_info, sizeof(current_user->user_info), "%s", junk); | 896 g_snprintf(current_user->user_info, sizeof(current_user->user_info), "%s", junk); |
897 | 897 |
898 save_prefs(); | 898 save_prefs(); |
899 | 899 |
900 buf = g_malloc(strlen(current_user->user_info) * 4); | 900 buf = g_malloc(strlen(current_user->user_info) * 4); |
901 if (!buf) { | |
902 buf = g_malloc(1); | |
903 buf[0] = 0; | |
904 } | |
901 g_snprintf(buf, strlen(current_user->user_info) * 2, "%s", current_user->user_info); | 905 g_snprintf(buf, strlen(current_user->user_info) * 2, "%s", current_user->user_info); |
902 escape_text(buf); | 906 escape_text(buf); |
903 serv_set_info(buf); | 907 serv_set_info(buf); |
904 g_free(buf); | 908 g_free(buf); |
905 g_free(junk); | 909 g_free(junk); |