Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c86e33
)
libht: Fixed headrmheader bug.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 3 Sep 2010 05:32:48 +0000
(07:32 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 3 Sep 2010 05:32:48 +0000
(07:32 +0200)
lib/req.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/req.c
b/lib/req.c
index
7bb37b4
..
64944bf
100644
(file)
--- a/
lib/req.c
+++ b/
lib/req.c
@@
-200,7
+200,7
@@
void headrmheader(struct hthead *head, const char *name)
free(head->headers[i][0]);
free(head->headers[i][1]);
free(head->headers[i]);
- memmove(head->headers + i, head->headers + i + 1,
--head->noheaders - i
);
+ memmove(head->headers + i, head->headers + i + 1,
sizeof(head->headers) * (--head->noheaders - i)
);
return;
}
}