Commit b8cb323b authored by Yonghong Song's avatar Yonghong Song

fix a typo

Signed-off-by: default avatarYonghong Song <yhs@plumgrid.com>
parent 3d1d8358
......@@ -185,7 +185,7 @@ class TmpDir {
explicit TmpDir(const string &prefix = "/tmp/bcc-")
: ok_(false), prefix_(prefix) {
prefix_ += "XXXXXX";
if (::mkdtemp((char *)prefix.data()) == NULL)
if (::mkdtemp((char *)prefix_.data()) == NULL)
::perror("mkdtemp");
else
ok_ = true;
......
Markdown is supported
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