Mercurial > gftp.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
840:dd83cd01dc30 | 841:94f87e3c92b2 |
---|---|
1054 newstr[--len] = '\0'; | 1054 newstr[--len] = '\0'; |
1055 if (len > 0 && newstr[len - 1] == '\r') | 1055 if (len > 0 && newstr[len - 1] == '\r') |
1056 newstr[--len] = '\0'; | 1056 newstr[--len] = '\0'; |
1057 | 1057 |
1058 for (pos = newstr + len - 1; | 1058 for (pos = newstr + len - 1; |
1059 (*pos == ' ' || *pos == '\t') && pos > newstr; | 1059 (*pos == ' ' || *pos == '\t') && pos > newstr; |
1060 pos--) | 1060 *pos-- = '\0'); |
1061 *pos = '\0'; | 1061 |
1062 | 1062 if (*newstr == '\0') |
1063 if (*stpos == '\0') | |
1064 { | 1063 { |
1065 g_free (newstr); | 1064 g_free (newstr); |
1066 return (1); | 1065 return (1); |
1067 } | 1066 } |
1068 | 1067 |