Skip to content

Commit

Permalink
Use strchr instead of strstr
Browse files Browse the repository at this point in the history
Thanks-to: @xiota and @andy5995
  • Loading branch information
rootkea committed Nov 25, 2021
1 parent 2dfb361 commit 6325345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.c
Expand Up @@ -1063,7 +1063,7 @@ gboolean build_parse_make_dir(const gchar *string, gchar **prefix)
gchar *input;

/* get the start of the path */
pos = strstr(string, "/");
pos = strchr(pos, "/");

if (pos == NULL)
return FALSE;
Expand Down

0 comments on commit 6325345

Please sign in to comment.