"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tilde.c" between
readline-7.0-rc1.tar.gz and readline-7.0-rc2.tar.gz

About: GNU Readline library - get a line from a user with editing. Release candidate.

tilde.c  (readline-7.0-rc1):tilde.c  (readline-7.0-rc2)
skipping to change at line 239 skipping to change at line 239
if (!start && !end) if (!start && !end)
break; break;
/* Expand the entire tilde word, and copy it into RESULT. */ /* Expand the entire tilde word, and copy it into RESULT. */
tilde_word = (char *)xmalloc (1 + end); tilde_word = (char *)xmalloc (1 + end);
strncpy (tilde_word, string, end); strncpy (tilde_word, string, end);
tilde_word[end] = '\0'; tilde_word[end] = '\0';
string += end; string += end;
expansion = tilde_expand_word (tilde_word); expansion = tilde_expand_word (tilde_word);
xfree (tilde_word);
if (expansion == 0)
expansion = tilde_word;
else
xfree (tilde_word);
len = strlen (expansion); len = strlen (expansion);
#ifdef __CYGWIN__ #ifdef __CYGWIN__
/* Fix for Cygwin to prevent ~user/xxx from expanding to //xxx when /* Fix for Cygwin to prevent ~user/xxx from expanding to //xxx when
$HOME for `user' is /. On cygwin, // denotes a network drive. */ $HOME for `user' is /. On cygwin, // denotes a network drive. */
if (len > 1 || *expansion != '/' || *string != '/') if (len > 1 || *expansion != '/' || *string != '/')
#endif #endif
{ {
if ((result_index + len + 1) > result_size) if ((result_index + len + 1) > result_size)
result = (char *)xrealloc (result, 1 + (result_size += (len + 20))); result = (char *)xrealloc (result, 1 + (result_size += (len + 20)));
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS