projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported from ../bash-2.01.tar.gz.
[platform/upstream/bash.git]
/
bracecomp.c
diff --git
a/bracecomp.c
b/bracecomp.c
index
3edfcdc
..
47f6bc3
100644
(file)
--- a/
bracecomp.c
+++ b/
bracecomp.c
@@
-31,11
+31,7
@@
# include <unistd.h>
#endif
# include <unistd.h>
#endif
-#if defined (HAVE_STRING_H)
-# include <string.h>
-#else /* !HAVE_STRING_H */
-# include <strings.h>
-#endif /* !HAVE_STRING_H */
+#include "bashansi.h"
#include "shell.h"
#include <readline/readline.h>
#include "shell.h"
#include <readline/readline.h>
@@
-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);
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++;
}
flag++;
}