Mercurial > gftp.yaz
diff lib/misc.c @ 838:57aad6d4b304
2006-10-31 Brian Masney <masneyb@gftp.org>
WARNING: The CVS version of gFTP is currently broken, especially for
international users. This will be fixed in a few days.
* lib/gftp.h lib/local.c lib/misc.c lib/protocols.c lib/rfc959.c
src/gtk/misc-gtk.c src/text/gftp-text.c - added length argument to
gftp_string_from_utf8() and gftp_string_to_utf8()
* src/uicommon/gftpui.c - warning fixes
author | masneyb |
---|---|
date | Wed, 01 Nov 2006 02:05:25 +0000 |
parents | afbe37351940 |
children | 32dbed7e0dc4 |
line wrap: on
line diff
--- a/lib/misc.c Mon Oct 30 13:49:06 2006 +0000 +++ b/lib/misc.c Wed Nov 01 02:05:25 2006 +0000 @@ -874,6 +874,7 @@ char *file_prefixstr, char *file_suffixstr) { char *tempstr1, *tempstr2, *ret, tstr[50], *attribs, *utf8; + size_t destlen; struct tm *lt; time_t t; @@ -900,7 +901,7 @@ if (file_suffixstr == NULL) file_suffixstr = ""; - utf8 = gftp_string_from_utf8 (request, fle->file); + utf8 = gftp_string_from_utf8 (request, fle->file, &destlen); ret = g_strdup_printf ("%s %s %s %s%s%s", tempstr1, tempstr2, tstr, file_prefixstr, utf8 != NULL ? utf8: fle->file,