From: Wolfgang Denk Date: Mon, 9 Oct 2006 10:50:41 +0000 (+0200) Subject: Fix buffer overflow problem in ft_build.c X-Git-Tag: U-Boot-1_1_5~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d262a92f0f6d43d671bfb0d5681246bff14d7997;p=oweals%2Fu-boot.git Fix buffer overflow problem in ft_build.c Patch by Fredrik Roubert, 09 Oct 2006 --- diff --git a/CHANGELOG b/CHANGELOG index b6ba66d09c..9486f0d3f2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Fix buffer overflow problem in ft_build.c + Patch by Fredrik Roubert, 09 Oct 2006 + * Make bootp implementation RFC3046 compliant Patch by Joakim Larsson, 27 Jun 2006 diff --git a/common/ft_build.c b/common/ft_build.c index 9e9c906fc1..b0560a22a1 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; }