Commit b1b70980 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Rolf Eike Beer

store string literal in const variable

parent bb1bce81
......@@ -720,9 +720,9 @@ int kwallet_hash(pam_handle_t *pamh, const char *passphrase, struct passwd *user
}
#ifdef KWALLET5
char *fixpath = "kwalletd/kdewallet.salt";
const char *fixpath = "kwalletd/kdewallet.salt";
#else
char *fixpath = "share/apps/kwallet/kdewallet.salt";
const char *fixpath = "share/apps/kwallet/kdewallet.salt";
#endif
size_t pathSize = strlen(userInfo->pw_dir) + strlen(kdehome) + strlen(fixpath) + 3;//3 == /, / and \0
char *path = (char*) malloc(pathSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment