From add2d3ba30e8dea80c271cb8f499eb26ce5abc64 Mon Sep 17 00:00:00 2001 From: localhorst Date: Fri, 1 May 2026 13:09:00 +0200 Subject: [PATCH] fix pointer --- src/shred.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shred.cpp b/src/shred.cpp index b8f9abb..c37299a 100644 --- a/src/shred.cpp +++ b/src/shred.cpp @@ -72,7 +72,8 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd) #endif #ifndef DRYRUN - const char *cpDrivePath = drive->getPath().c_str(); + string sDrivePath = drive->getPath(); + const char *cpDrivePath = sDrivePath.c_str(); unsigned char ucKey[TFNG_KEY_SIZE]; // Open random source