Skip to content
Snippets Groups Projects
Verified Commit f617b21b authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

fix

parent 80709e8f
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ da_str_t find_git(const char *path) {
bool is_repo = false;
da_foreach(char *, f, &next) {
char *g = malloc(sizeof(f) + 1);
char *g = malloc(strlen(*f) + 1);
strcpy(g, *f);
log_infoln("\t\tnext: %s", g);
if (strcmp(*f, ".git") == 0) {
......@@ -94,7 +94,7 @@ da_str_t find_git(const char *path) {
log_infoln("\tNOT a repo");
da_foreach(char *, f, &next) {
char *g = malloc(sizeof(f) + 1);
char *g = malloc(strlen(*f) + 1);
strcpy(g, *f);
da_str_t res = find_git(concat(concat(path, "/"), g));
da_foreach(char *, r, &res) { da_append(&repos, *r); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment