Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
doc: trivial typo in git-format-patch.txt
[gitweb.git]
/
test-path-utils.c
diff --git
a/test-path-utils.c
b/test-path-utils.c
index 0c15f1821f5bdfbe41b462e89bd63240fc4afc70..ba805b374c57a4e5ad2e6e4a4b9071a11c165afa 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))