fish: Fix off-by-one bug in tilde expansion.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 4 Jan 2011 16:02:48 +0000 (16:02 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 4 Jan 2011 16:02:48 +0000 (16:02 +0000)
commita9802509184341e731de5c9af363184a9964a8a7
tree6412a795d043cbd85c49c6e86e51d0268b017354
parent04a9645ca6a3651e76ca311cd2ff79a22bd2af1f
fish: Fix off-by-one bug in tilde expansion.

Although this doesn't seem to cause a crash, valgrind confirms
that this is a genuine off-by-one bug.  It could potentially
cause a crash if you did:

  echo 'echo ~root/foo' | guestfish
fish/tilde.c