Changeset c11b68a


Ignore:
Timestamp:
2016-12-27T00:37:50Z (3 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
398b3198
Parents:
faa7abb6
git-author:
dequis <dx@…> (27-12-16 00:37:12)
git-committer:
dequis <dx@…> (27-12-16 00:37:50)
Message:

purple: fix -Werror=format-string in chat settings code

This one was caught by the debian build scripts in travis. I had
format-security in my local cflags, not format-string. Welp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    rfaa7abb6 rc11b68a  
    819819                if (pce->required && !g_hash_table_lookup(chat_hash, pce->identifier)) {
    820820                        if (!missing_settings) {
    821                                 missing_settings = g_string_new(NULL);
    822                                 g_string_printf(missing_settings,
    823                                         "Can't join %s. The following settings are required: ", room);
     821                                missing_settings = g_string_sized_new(32);
    824822                        }
    825823                        g_string_append_printf(missing_settings, "%s, ", pce->identifier);
     
    835833                g_string_truncate(missing_settings, missing_settings->len - 2);
    836834
    837                 imcb_error(ic, missing_settings->str);
     835                imcb_error(ic, "Can't join %s. The following settings are required: %s", room, missing_settings->str);
    838836
    839837                g_string_free(missing_settings, TRUE);
Note: See TracChangeset for help on using the changeset viewer.