summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/src/popup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/popup.c b/ui/src/popup.c
index b6c9346..e35ffd5 100644
--- a/ui/src/popup.c
+++ b/ui/src/popup.c
@@ -49,6 +49,8 @@
#define TEXT_DOMAIN "askuser-popup"
+#define COUNTER_LEN 26
+
void send_response(const char *response, app_data_s *ad) //TODO: change to enum?
{
@@ -119,7 +121,7 @@ static void __set_popup_contents(app_data_s *ad)
elm_object_text_set(ad->label, __get_message(ad->caller_pkgid, (const char*)pd->privacy));
elm_atspi_accessible_name_set(ad->label, __get_message(ad->caller_pkgid, (const char*)pd->privacy));
if (!strcmp(ad->launch_type, "multi")) {
- char counter[10];
+ char counter[COUNTER_LEN];
int ret = sprintf(counter, "%d / %d", (ad->privacy_idx) + 1, ad->privacy_num);
LOGD("counter %s", counter);
elm_object_text_set(ad->counter, counter);