From 21b97ed5693d039e8b9dea57a160d3307f412682 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Thu, 24 Jun 2010 16:11:17 -0700 Subject: Add __attribute__((format(printf, a, b))) to printf like functions. Fix potential string format bug. Change-Id: Ie05aac53b2c45a48bd68e340b76ccb21edfd28b7 --- install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install.c') diff --git a/install.c b/install.c index 37a4f0770..35ba6ca70 100644 --- a/install.c +++ b/install.c @@ -136,7 +136,7 @@ try_update_binary(const char *path, ZipArchive *zip) { } else if (strcmp(command, "ui_print") == 0) { char* str = strtok(NULL, "\n"); if (str) { - ui_print(str); + ui_print("%s", str); } else { ui_print("\n"); } -- cgit v1.2.3