diff options
| author | 2014-05-07 21:57:08 -0700 | |
|---|---|---|
| committer | 2014-05-07 22:02:21 -0700 | |
| commit | 2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2 (patch) | |
| tree | ab2ca115666930736be6aad8c2fb0540f84e177b | |
| parent | 497d6e3e6c353d69cd6c27f7b573400b82de8ff3 (diff) | |
| download | subsurface-2e0a51264f2d8dfdb2ffe016742f6dd52b0f15e2.tar.gz | |
Fix another dangling pointer
| -rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index f2fddb5e4..17eb2a3c4 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -841,10 +841,8 @@ void ProfileWidget2::editName() lengthWarning.exec(); return; } - const char *temp; - temp = newName.toStdString().c_str(); - strcpy(event->name, temp); - remember_event(temp); + strcpy(event->name, newName.toUtf8()); + remember_event(event->name); } replot(); } |