diff src/curl/curl.c @ 500:1d81ea250dce trunk

[svn] - URIs are now passed naked instead of mangled by the VFS subsystem.
author nenolod
date Sun, 21 Jan 2007 20:51:22 -0800
parents 6779a84fbf10
children 1b06f6690022
line wrap: on
line diff
--- a/src/curl/curl.c	Sun Jan 21 20:25:59 2007 -0800
+++ b/src/curl/curl.c	Sun Jan 21 20:51:22 2007 -0800
@@ -458,13 +458,13 @@
 curl_vfs_fopen_impl(const gchar * path,
 		    const gchar * mode)
 {
-  gchar *url = g_malloc(strlen(path) + strlen("http://") + 1);
+  gchar *url;
   CurlHandle *handle;
   VFSFile *file;
   if (!path || !mode)
     return NULL;
 
-  sprintf(url, "http://%s", path);
+  url = g_strdup(path);
 
   file = g_new0(VFSFile, 1);