Skip to content
Snippets Groups Projects
Commit 4b4fcaa1 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] misuse of strstr

parent fd2c903b
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ static struct gdlm_ls *init_gdlm(lm_callback_t cb, struct gfs2_sbd *sdp,
strncpy(buf, table_name, 256);
buf[255] = '\0';
p = strstr(buf, ":");
p = strchr(buf, ':');
if (!p) {
log_info("invalid table_name \"%s\"", table_name);
kfree(ls);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment