diff --git a/src/main/biblesync_glue.cc b/src/main/biblesync_glue.cc index dff4e860a..0e61f8006 100644 --- a/src/main/biblesync_glue.cc +++ b/src/main/biblesync_glue.cc @@ -784,7 +784,10 @@ int biblesync_active_xmit_allowed() */ const char *biblesync_get_passphrase() { - return biblesync->getPassphrase().c_str(); + static string phrase; + + phrase = biblesync->getPassphrase(); + return phrase.c_str(); } /******************************************************************************