diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-15 18:10:14 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-15 18:10:14 -0400 |
commit | 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d (patch) | |
tree | f419f2967fd01cfb9c4379ce89313379baecb0f0 /gptcl.cc | |
parent | 1d46f3723bc25f5598266f7d9a3548af3cee0c77 (diff) | |
download | sgdisk-5d5e76d369a412bfb3d2cebb5fc0a7509cef878d.tar.gz |
Fix failure & crash of sgdisk when compiled with latest popt (commit 740; presumably eventually release 1.19)
Diffstat (limited to 'gptcl.cc')
-rw-r--r-- | gptcl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { } // while // Assume first non-option argument is the device filename.... - device = (char*) poptGetArg(poptCon); + device = strdup((char*) poptGetArg(poptCon)); poptResetContext(poptCon); if (device != NULL) { |