aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2004-11-19 06:12:16 +0000
committerJason Woodward2004-11-19 06:12:16 +0000
commitfa060b2e92a1a4d98783322302a9d35a5ca4d4cb (patch)
tree36fe455e096b5368acbeaece9cdf72eeee92affc
parent71eed0a7646ef669d63d106d9610fe22db67b880 (diff)
downloadslapt-get-fa060b2e92a1a4d98783322302a9d35a5ca4d4cb.tar.gz
fixed regression where last change broke package source caching
-rw-r--r--ChangeLog2
-rw-r--r--src/package.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d387294..2cae534 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,5 @@
-0.9.9d Nov 17, 2004
+0.9.9d Nov 19, 2004
* added FAQ: 48. How can I search the contents of a package for a file or library?
* added czech translation by Oto Petrik
* made head_mirror_data clear_head_cache write_head_cache read_head_cache
diff --git a/src/package.c b/src/package.c
index 59b56d1..77dc5ec 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1464,9 +1464,8 @@ char *head_mirror_data(const char *wurl,const char *file){
free(head_data);
return NULL;
}
- request_header_len =
- (request_header_ptr == NULL) ? 0 : strlen(request_header_ptr) -
- (delim_ptr == NULL) ? 0 : strlen(delim_ptr);
+
+ request_header_len = strlen(request_header_ptr) - strlen(delim_ptr);
request_header = calloc( request_header_len + 1, sizeof *request_header );
memcpy(request_header,request_header_ptr,request_header_len);