commit_ref_update(): remove the flags parameter
[gitweb.git] / test-path-utils.c
index 0c15f1821f5bdfbe41b462e89bd63240fc4afc70..ba805b374c57a4e5ad2e6e4a4b9071a11c165afa 100644 (file)
@@ -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))