diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 01:21:43 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 01:21:43 -0500 |
commit | f37f6ba19db229119ba3bd209dc10814dacf07b0 (patch) | |
tree | de1e376137768e3df281aa7d992c9b5686d9c40b /system/kmod/strndupa.patch | |
parent | f6aa28831790b57cd2cb7407e3a7f69a2cb08b07 (diff) | |
download | packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.tar.gz packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.tar.bz2 packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.tar.xz packages-f37f6ba19db229119ba3bd209dc10814dacf07b0.zip |
system/kmod: pull in for mkinitfs
Diffstat (limited to 'system/kmod/strndupa.patch')
-rw-r--r-- | system/kmod/strndupa.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/kmod/strndupa.patch b/system/kmod/strndupa.patch new file mode 100644 index 000000000..d4527140e --- /dev/null +++ b/system/kmod/strndupa.patch @@ -0,0 +1,15 @@ +diff --git a/libkmod/libkmod-util.c b/libkmod/libkmod-util.c +index df12433..142e767 100644 +--- a/shared/util.c ++++ b/shared/util.c +@@ -334,7 +334,9 @@ int mkdir_p(const char *path, int len, mode_t mode) + { + char *start, *end; + +- start = strndupa(path, len); ++ start = alloca(len+1); ++ strncpy(start, path, len); ++ start[len] = '\0'; + end = start + len; + + /* |