Hi,
This patch looks like it will change the behaviour of unhex, so it might need a
careful review...
Thanks,
Cindy
From 5b0c89f17b750f8ebff0a39d42a355e2b1c39c0b Mon Sep 17 00:00:00 2001
From: Cynthia Rempel <cynt...@rtems.org>
Date: Sun, 25 Aug 2013 18:00:31 -0700
Subject: [PATCH] Initialize the string before replacing characters
---
tools/build/unhex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/build/unhex.c b/tools/build/unhex.c
index 9248e8f..be4465d 100644
--- a/tools/build/unhex.c
+++ b/tools/build/unhex.c
@@ -545,6 +545,7 @@ convert_TI_records(
while ( ! endrecord && (fgets(buff, sizeof(buff), ifp)))
{
+ p = &buff[0];
if (p[strlen(p)-1] == '\n') /* get rid of newline */
p[strlen(p)-1] = '\0';
@@ -553,7 +554,6 @@ convert_TI_records(
tb.dl_count = 0;
- p = &buff[0];
eol = FALSE;
while ( ! eol && ! endrecord)
{
--
1.8.1.2
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel