da5698c
From 0bf9733c6e8d40a5d327e754b44c7e540cdada7e Mon Sep 17 00:00:00 2001
da5698c
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
da5698c
Date: Sun, 31 Oct 2010 19:07:44 +0000
da5698c
Subject: [PATCH] strcpy cannot be used with overlapping src and dest
da5698c
da5698c
---
da5698c
 soltools/mkdepend/parse.c |    2 +-
da5698c
 1 files changed, 1 insertions(+), 1 deletions(-)
da5698c
da5698c
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
da5698c
index 6d6e079..ec7e7d4 100644
da5698c
--- a/soltools/mkdepend/parse.c
da5698c
+++ b/soltools/mkdepend/parse.c
da5698c
@@ -347,7 +347,7 @@ int deftype (line, filep, file_red, file, parse_it, symbols)
da5698c
         /*
da5698c
          * copy the definition back to the beginning of the line.
da5698c
          */
da5698c
-        strcpy (line, p);
da5698c
+        memmove (line, p, strlen(p));
da5698c
         break;
da5698c
     case ELSE:
da5698c
     case ENDIF:
da5698c
-- 
da5698c
1.7.3.1
da5698c