Skip to content
Snippets Groups Projects
Commit ce1949f9 authored by Wolfram Sang's avatar Wolfram Sang Committed by Yang Yingliang
Browse files

modpost: explain why we can't use strsep


mainline inclusion
from mainline-5.8
commit 6020db50
category: bugfix
bugzilla: 46847
CVE: NA

-----------------------------------------------

Mention why we open-code strsep, so it is clear that it is intentional.

Fixes: 736bb118 ("modpost: remove use of non-standard strsep() in HOSTCC code")
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
Reviewed-by: default avatarJian Cheng <cj.chengjian@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 247a52d0
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,7 @@ char *get_line(char **stringp)
if (!orig || *orig == '\0')
return NULL;
/* don't use strsep here, it is not available everywhere */
next = strchr(orig, '\n');
if (next)
*next++ = '\0';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment