OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'ko/merge-l10n' of https://github.com/changwoo/git-l10n-ko
[git-core/git.git]
/
test-path-utils.c
diff --git
a/test-path-utils.c
b/test-path-utils.c
index
0c15f18
..
ba805b3
100644
(file)
--- a/
test-path-utils.c
+++ b/
test-path-utils.c
@@
-49,7
+49,7
@@
static int test_function(struct test_data *data, char *(*func)(char *input),
if (!data[i].from)
to = func(NULL);
else {
-
strcpy(buffer
, data[i].from);
+
xsnprintf(buffer, sizeof(buffer), "%s"
, data[i].from);
to = func(buffer);
}
if (!strcmp(to, data[i].to))