about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/config/files.h3
-rw-r--r--src/xmpp/connection.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/config/files.h b/src/config/files.h
index 975b4509..16292dc4 100644
--- a/src/config/files.h
+++ b/src/config/files.h
@@ -2,6 +2,7 @@
  * files.h
  *
  * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
+ * Copyright (C) 2018 - 2019 Michael Vetter <jubalh@idoru.org>
  *
  * This file is part of Profanity.
  *
@@ -43,7 +44,7 @@
 #define FILE_PLUGIN_SETTINGS "plugin_settings"
 #define FILE_PLUGIN_THEMES "plugin_themes"
 #define FILE_CAPSCACHE "capscache"
-#define FILE_RND_INST_BYTES "randbytes"
+#define FILE_PROFANITY_IDENTIFIER "profident"
 
 #define DIR_THEMES "themes"
 #define DIR_ICONS "icons"
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 2d2e5773..e9ccd756 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -2,6 +2,7 @@
  * connection.c
  *
  * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
+ * Copyright (C) 2018 - 2019 Michael Vetter <jubalh@idoru.org>
  *
  * This file is part of Profanity.
  *
@@ -624,7 +625,7 @@ static void _random_bytes_init()
     char *rndbytes_loc;
     GKeyFile *rndbytes;
 
-    rndbytes_loc = files_get_data_path(FILE_RND_INST_BYTES);
+    rndbytes_loc = files_get_data_path(FILE_PROFANITY_IDENTIFIER);
 
     if (g_file_test(rndbytes_loc, G_FILE_TEST_EXISTS)) {
         g_chmod(rndbytes_loc, S_IRUSR | S_IWUSR);