misuse of strstr
PATCH 1/1 misuse of strstr
Signed-off-by Al Viro <[email protected]>
--- fs/gfs2/locking/dlm/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/gfs2/locking/dlm/mount.c +1 -1
@@ -45,7 +45,7 @@ static struct gdlm_ls *init_gdlm(lm_callstrncpy (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);
Signature · 1 line
1.4.2.GIT
fs/gfs2/locking/dlm/mount.c static struct gdlm_ls *init_gdlm(lm_call · line 48
Quoted 8 lines
fs/gfs2/locking/dlm/mount.c +1
-1@@ -45,7 +45,7 @@ static struct gdlm_ls *init_gdlm(lm_callstrncpy (buf, table_name,256 ); buf[255 ] ='\0' ; - p =strstr (buf,":" ); + p =strchr (buf,':' );
arch/mips/arc/cmdline.c:55: s = strstr(prom_argv(actr), "=");
sorry for absence of patch, I'm on wonders of BY dial-up _and_ Gmail web interface right now.