[Frugalware-git] pacman-g2: HttpGet(): fix build

Miklos Vajna vmiklos at frugalware.org
Tue Nov 6 23:20:10 CET 2007


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=9bc08c2ca57ebe91f4de2746bef16110d7dbe658

commit 9bc08c2ca57ebe91f4de2746bef16110d7dbe658
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Tue Nov 6 23:17:58 2007 +0100

HttpGet(): fix build
which was broken in 08ba88e6

diff --git a/lib/libftp/ftplib.c b/lib/libftp/ftplib.c
index a3897e2..f4bd621 100644
--- a/lib/libftp/ftplib.c
+++ b/lib/libftp/ftplib.c
@@ -1524,7 +1524,7 @@ GLOBALREF int HttpGet(const char *host, const char *outputfile, const char *path

if (offset > 0)
{
-		snprintf(tmp, sizeof(tmp); "Range: bytes=%d-\r\n", offset);
+		snprintf(tmp, sizeof(tmp), "Range: bytes=%d-\r\n", offset);
strncat(buf, tmp, sizeof(buf)-strlen(buf)-1);
}


More information about the Frugalware-git mailing list