summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2e6f1c)
raw | patch | inline | side by side (parent: f2e6f1c)
author | Jan Andres <jandres@gmx.net> | |
Tue, 29 Nov 2005 00:51:54 +0000 (01:51 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 29 Nov 2005 05:56:30 +0000 (21:56 -0800) |
Typo resulted in accessing past the beginning of a string causing segfaults.
[jc: signoffs?]
[jc: signoffs?]
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index 76c788673e0a02c723d99976d3e605531341c7a9..ad789829c1c33e00cbcc9e1e1564e645755d49ab 100644 (file)
--- a/http-push.c
+++ b/http-push.c
strtol(ctx->cdata + 7, NULL, 10);
} else if (!strcmp(ctx->name, DAV_ACTIVELOCK_TOKEN)) {
if (!strncmp(ctx->cdata, "opaquelocktoken:", 16)) {
- lock->token = xmalloc(strlen(ctx->cdata - 15));
+ lock->token = xmalloc(strlen(ctx->cdata) - 15);
strcpy(lock->token, ctx->cdata + 16);
}
}