Mercurial > gftp.yaz
diff lib/rfc959.c @ 372:44b792841e3f
2003-1-18 Brian Masney <masneyb@gftp.org>
* lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c - if
_LARGEFILE_SOURCE is defined, explicitly cast the file sizes to
long long so that the %lld format will be correct
author | masneyb |
---|---|
date | Mon, 19 Jan 2004 22:23:04 +0000 |
parents | f514f510ebaa |
children | b39a312323ec |
line wrap: on
line diff
--- a/lib/rfc959.c Mon Jan 19 12:23:52 2004 +0000 +++ b/lib/rfc959.c Mon Jan 19 22:23:04 2004 +0000 @@ -1074,7 +1074,7 @@ if (startsize > 0) { #if defined (_LARGEFILE_SOURCE) - command = g_strdup_printf ("REST %lld\r\n", startsize); + command = g_strdup_printf ("REST %lld\r\n", (long long) startsize); #else command = g_strdup_printf ("REST %ld\r\n", startsize); #endif @@ -1150,7 +1150,7 @@ if (startsize > 0) { #if defined (_LARGEFILE_SOURCE) - command = g_strdup_printf ("REST %lld\r\n", startsize); + command = g_strdup_printf ("REST %lld\r\n", (long long) startsize); #else command = g_strdup_printf ("REST %ld\r\n", startsize); #endif