commit | 21b97ed5693d039e8b9dea57a160d3307f412682 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Thu Jun 24 16:11:17 2010 -0700 |
committer | Nick Kralevich <nnk@google.com> | Thu Jun 24 16:11:17 2010 -0700 |
tree | 7257b5526e7f4ae33c2dea69ad86c4688e13bdda | |
parent | dd6a0412b5d4623f63e46120c648342824029c18 [diff] [blame] |
Add __attribute__((format(printf, a, b))) to printf like functions. Fix potential string format bug. Change-Id: Ie05aac53b2c45a48bd68e340b76ccb21edfd28b7
diff --git a/install.c b/install.c index 37a4f07..35ba6ca 100644 --- a/install.c +++ b/install.c
@@ -136,7 +136,7 @@ } 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"); }