if (ancs_connected) {
char text[512];
- snprintf(text, sizeof(text), _(SK_NETWORK_ERROR_FOR_IOS), _(SK_SAMSUNG_GEAR));
+ const char *format1 = _(SK_NETWORK_ERROR_FOR_IOS);
+ const char *format2 = _(SK_SAMSUNG_GEAR);
+ snprintf(text, sizeof(text), format1, format2);
show_popup_toast((const char*)text, false);
} else {