summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-01-18 23:42:41 +0000
committerJason Woodward2010-01-18 23:42:41 +0000
commit1a0b7873af4b622442fd75a8f653f8c5e554d392 (patch)
treedb16cf5f2f73bf60af4bb2b60d8d572db992531d
parente73ac68e7efc381ed9c48312bf4c604ee08a1c7b (diff)
downloadslapt-get-1a0b7873af4b622442fd75a8f653f8c5e554d392.tar.gz
removed extraneous / when constructing package source url
-rw-r--r--ChangeLog3
-rw-r--r--src/curl.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 69413ec..ceb1f8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
+0.10.2d Jan 18, 2010
+ * removed extraneous / when constructing package source url
+
0.10.2c Jan 10, 2010
* ignore the location for installed packages as they do not have any
real meaning and end up confusing the user.
diff --git a/src/curl.c b/src/curl.c
index 2c47714..2a407e2 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -451,10 +451,9 @@ char *slapt_head_mirror_data(const char *wurl,const char *file)
char *url;
/* build url */
- url = slapt_calloc(strlen(wurl) + strlen(file) + 2, sizeof *url);
+ url = slapt_calloc(strlen(wurl) + strlen(file) + 1, sizeof *url);
url[0] = '\0';
strncat(url,wurl,strlen(wurl));
- strncat(url,"/",1);
strncat(url,file,strlen(file));
/* retrieve the header info */