[Spice-commits] gtk/spice-option.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Wed Apr 23 11:04:12 PDT 2014


 gtk/spice-option.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 39ded7a4d19ee0e783a7027ff58eb022cd6b1e91
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date:   Wed Apr 23 17:19:06 2014 +0200

    option: use more portable default ca-file path
    
    If no CA path is given, a default one is set. Use g_build_filename() to
    set a more portable and valid default path.

diff --git a/gtk/spice-option.c b/gtk/spice-option.c
index 1c861e2..2d03912 100644
--- a/gtk/spice-option.c
+++ b/gtk/spice-option.c
@@ -225,7 +225,7 @@ void spice_set_session_option(SpiceSession *session)
         const char *homedir = g_getenv("HOME");
         if (!homedir)
             homedir = g_get_home_dir();
-        ca_file = g_strdup_printf("%s/.spicec/spice_truststore.pem", homedir);
+        ca_file = g_build_filename(homedir, ".spicec", "spice_truststore.pem", NULL);
     }
 
     if (disable_effects) {


More information about the Spice-commits mailing list