Skip to content

Commit

Permalink
g.version: strstr -> strchr (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Apr 2, 2020
1 parent 340c2a4 commit 239f361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion general/g.version/main.c
Expand Up @@ -151,7 +151,7 @@ int main(int argc, char *argv[])
if (*rev_ver && *rev_time) {
if (shell->answer) {
fprintf(stdout, "libgis_revision=");
if (strstr(rev_ver, " ") != NULL)
if (strchr(rev_ver, ' ') != NULL)
fprintf(stdout, "\"%s\"", rev_ver);
else
fprintf(stdout, "%s", rev_ver);
Expand Down

0 comments on commit 239f361

Please sign in to comment.