commit dcba5aa4f9ecb0bbe33067e679b3d5094e55f90a
Author: Jim Meyering <meyering(a)redhat.com>
Date: Wed Jun 15 11:36:39 2011 +0200
maint: adjust comment to match just-changed code
* dc-rhev-image.c (apistart): Adjust comment to match code.
dc-rhev-image.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/dc-rhev-image.c b/dc-rhev-image.c
index 865040f..3658009 100644
--- a/dc-rhev-image.c
+++ b/dc-rhev-image.c
@@ -879,7 +879,7 @@ static struct stor_dom *apistart(struct config *cfg)
authrlen = strlen(authraw);
authhlen = ((authrlen+2)/3) * 4; /* base64 expands 3 into 4 */
authhlen += sizeof("Authorization: Basic ")-1;
- authhdr = malloc(authhlen + 1); /* \r\n and nul */
+ authhdr = malloc(authhlen + 1); /* nul */
if (!authhdr)
goto err_alloc;
strcpy(authhdr, "Authorization: Basic ");
Show replies by date