diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/console.c | 6 | ||||
-rw-r--r-- | src/xmpp/stanza.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 95a70a30..822e6d3e 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -395,8 +395,8 @@ cons_show_incoming_private_message(const char* const nick, const char* const roo static void _cons_welcome_first_start(void) { - gchar* prefs_loc = files_get_config_path(FILE_PROFANITY_IDENTIFIER); - if (!g_file_test(prefs_loc, G_FILE_TEST_EXISTS)) { + gchar* ident_loc = files_get_data_path(FILE_PROFANITY_IDENTIFIER); + if (!g_file_test(ident_loc, G_FILE_TEST_EXISTS)) { ProfWin* console = wins_get_console(); win_println(console, THEME_DEFAULT, "-", "This seems to be your first time starting Profanity."); win_println(console, THEME_DEFAULT, "-", ""); @@ -410,7 +410,7 @@ _cons_welcome_first_start(void) win_println(console, THEME_DEFAULT, "-", "/register myjid myserver.org"); win_println(console, THEME_DEFAULT, "-", ""); } - g_free(prefs_loc); + g_free(ident_loc); } void diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index c6bf19fb..6b8377b6 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -2661,7 +2661,7 @@ stanza_create_avatar_metadata_publish_iq(xmpp_ctx_t* ctx, const char* img_data, xmpp_stanza_set_name(info, STANZA_NAME_INFO); xmpp_stanza_set_attribute(info, "id", sha1); xmpp_free(ctx, sha1); - char* bytes = g_strdup_printf("%lu", len); + char* bytes = g_strdup_printf("%" G_GSIZE_FORMAT, len); char* h = g_strdup_printf("%d", height); char* w = g_strdup_printf("%d", width); xmpp_stanza_set_attribute(info, "bytes", bytes); |