summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/tpax_file_create_tmpfs_snapshot.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/logic/tpax_file_create_tmpfs_snapshot.c b/src/logic/tpax_file_create_tmpfs_snapshot.c
index bdfa396..9a731c0 100644
--- a/src/logic/tpax_file_create_tmpfs_snapshot.c
+++ b/src/logic/tpax_file_create_tmpfs_snapshot.c
@@ -39,7 +39,6 @@ int tpax_file_create_tmpfs_snapshot(
void * buf;
size_t buflen;
struct stat dstst;
- char sbuf[2048];
/* record errors */
tpax_driver_set_ectx(
@@ -50,10 +49,8 @@ int tpax_file_create_tmpfs_snapshot(
return TPAX_SYSTEM_ERROR(dctx);
/* buffer */
- if (!(buf = tpax_get_driver_anon_map_addr(dctx,&buflen))) {
- buf = sbuf;
- buflen = sizeof(sbuf);
- }
+ buf = tpax_get_driver_anon_map_addr(
+ dctx,&buflen);
/* open */
if ((fdsrc = openat(fdat,path,O_CLOEXEC|O_NOCTTY|O_NOFOLLOW,0)) < 0) {