Mercurial > gftp.yaz
diff src/uicommon/gftpui.c @ 841:94f87e3c92b2
2006-11-2 Brian Masney <masneyb@gftp.org>
* lib/local.c (local_chdir) - fixed double free of the utf8 variable.
This only occured in the CVS version.
* src/uicommon/gftpui.c (gftpui_common_process_command) - fixes for
detecting empty lines
author | masneyb |
---|---|
date | Fri, 03 Nov 2006 01:36:01 +0000 |
parents | 57aad6d4b304 |
children | 10e2ce91e26c |
line wrap: on
line diff
--- a/src/uicommon/gftpui.c Wed Nov 01 03:15:49 2006 +0000 +++ b/src/uicommon/gftpui.c Fri Nov 03 01:36:01 2006 +0000 @@ -1056,11 +1056,10 @@ newstr[--len] = '\0'; for (pos = newstr + len - 1; - (*pos == ' ' || *pos == '\t') && pos > newstr; - pos--) - *pos = '\0'; + (*pos == ' ' || *pos == '\t') && pos > newstr; + *pos-- = '\0'); - if (*stpos == '\0') + if (*newstr == '\0') { g_free (newstr); return (1);