Mercurial > gftp.yaz
diff lib/protocols.c @ 185:cc94bd62d290
2003-6-16 Brian Masney <masneyb@gftp.org>
* lib/protocols.c (_gftp_get_next_charset) - set the separator for
remote charsets to be a comma
* lib/options.h - updated description of remote charsets
| author | masneyb |
|---|---|
| date | Tue, 17 Jun 2003 10:13:26 +0000 |
| parents | 65eb40fb4f03 |
| children | 13ca1defdc75 |
line wrap: on
line diff
--- a/lib/protocols.c Tue Jun 17 02:02:42 2003 +0000 +++ b/lib/protocols.c Tue Jun 17 10:13:26 2003 +0000 @@ -345,9 +345,9 @@ ret = *curpos; if (*curpos != remote_charsets) - *(*curpos - 1) = '\0'; - - if ((endpos = strchr (*curpos, ' ')) == NULL) + *(*curpos - 1) = ','; + + if ((endpos = strchr (*curpos, ',')) == NULL) *curpos += strlen (*curpos); else { @@ -401,6 +401,8 @@ request->iconv_initialized = 1; break; } + + /* FIXME - fix NUL character in remote_charsets */ } return (ret);
