Skip to content

Commit

Permalink
name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ygorpontelo committed Oct 27, 2024
1 parent 707f551 commit 8e273d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build/project_creation.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ static char* get_proj_name()
while (full_path[end] != '\0') end++;
int begin = end;
while (begin > 0 && full_path[begin] != '/') begin--;
return full_path+begin+1;
if (full_path[begin] == '/') begin++;
return full_path+begin;
}

static void chdir_or_fail(BuildOptions *build_options, const char *name)
Expand Down

0 comments on commit 8e273d3

Please sign in to comment.