summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2013-07-15 01:58:44 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2013-07-15 12:44:33 -0300
commitc493b937509596eb038a00926a714c3c99615287 (patch)
treebe71383e3853be2c337efa3d78ee781f437f8c7b /testsuite
parentae17710117628de46d67ff28e545b52a45bd268e (diff)
downloadkmod-c493b937509596eb038a00926a714c3c99615287.tar.gz
kmod-c493b937509596eb038a00926a714c3c99615287.tar.bz2
kmod-c493b937509596eb038a00926a714c3c99615287.zip
util: Add len arg to mkdir_p()
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/init_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/init_module.c b/testsuite/init_module.c
index ebf1b94..42177e7 100644
--- a/testsuite/init_module.c
+++ b/testsuite/init_module.c
@@ -155,7 +155,7 @@ static int create_sysfs_files(const char *modname)
strcpy(buf + len, modname);
len += strlen(modname);
- assert(mkdir_p(buf, 0755) >= 0);
+ assert(mkdir_p(buf, len, 0755) >= 0);
strcpy(buf + len, "/initstate");
return write_one_line_file(buf, "live\n", strlen("live\n"));