summaryrefslogtreecommitdiff
path: root/common/ft_build.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@nyx.denx.de>2006-10-09 12:50:41 +0200
committerWolfgang Denk <wd@nyx.denx.de>2006-10-09 12:50:41 +0200
commitd262a92f0f6d43d671bfb0d5681246bff14d7997 (patch)
tree3ec23aa582ef2aa310fe802112c485d3f7ee8919 /common/ft_build.c
parentd82718fed0085b713d223b878c2378aeccc9a3e2 (diff)
downloadu-boot-imx-d262a92f0f6d43d671bfb0d5681246bff14d7997.zip
u-boot-imx-d262a92f0f6d43d671bfb0d5681246bff14d7997.tar.gz
u-boot-imx-d262a92f0f6d43d671bfb0d5681246bff14d7997.tar.bz2
Fix buffer overflow problem in ft_build.c
Patch by Fredrik Roubert, 09 Oct 2006
Diffstat (limited to 'common/ft_build.c')
-rw-r--r--common/ft_build.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/ft_build.c b/common/ft_build.c
index 9e9c906..b0560a2 100644
--- a/common/ft_build.c
+++ b/common/ft_build.c
@@ -293,7 +293,9 @@ static void print_data(const void *data, int len)
return;
if (is_printable_string(data, len)) {
- printf(" = \"%s\"", (char *)data);
+ puts(" = \"");
+ puts(data);
+ puts("\"");
return;
}