X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bracecomp.c;h=47f6bc39d805e303c7d353efea8080b5bf7544d0;hb=d166f048818e10cf3799aa24a174fb22835f1acc;hp=3edfcdcc6a62c020376b10fbb56342468216900d;hpb=ccc6cda312fea9f0468ee65b8f368e9653e1380b;p=platform%2Fupstream%2Fbash.git diff --git a/bracecomp.c b/bracecomp.c index 3edfcdc..47f6bc3 100644 --- a/bracecomp.c +++ b/bracecomp.c @@ -31,11 +31,7 @@ # include #endif -#if defined (HAVE_STRING_H) -# include -#else /* !HAVE_STRING_H */ -# include -#endif /* !HAVE_STRING_H */ +#include "bashansi.h" #include "shell.h" #include @@ -103,7 +99,7 @@ really_munge_braces (array, real_start, real_end, gcd_zero) top level, and there isn't a consistent prefix. */ result_size += 1; result = xrealloc (result, result_size); - strcpy (result, "{"); + result[0] = '{'; result[1] = '\0'; flag++; }