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>
Mon, 10 Jan 2011 09:41:35 +0000 (09:41 +0000)
commit8fd6edf2e628dd382fd8e80aada25338981584f5
tree09e4725219da30481570efdff4afce227999226e
parentfebf614d7e3ac47ceed9a556d8ca8ca2ed23a563
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
(cherry picked from commit a9802509184341e731de5c9af363184a9964a8a7)
fish/tilde.c