]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Allocate the SSH specials list dynamically.
authorSimon Tatham <anakin@pobox.com>
Mon, 21 Mar 2016 06:50:50 +0000 (06:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 21 Mar 2016 06:50:50 +0000 (06:50 +0000)
commit10a48c35917011b465b0cdce4521fb91839ee408
tree3d7c78e76c40a0ed12f886773f42fd97c4a8ad56
parent6ef6cb1573a9a587e4912f735ad837f149f50a5a
Allocate the SSH specials list dynamically.

The last list we returned is now stored in the main Ssh structure
rather than being a static array in ssh_get_specials.

The main point of this is that I want to start adding more dynamic
things to it, for which I can't predict the array's max length in
advance.

But also this fixes a conceptual wrongness, in that if a process had
more than one Ssh instance in it then their specials arrays would have
taken turns occupying the old static array, and although the current
single-threaded client code in the GUI front ends wouldn't have minded
(it would have read out the contents just once immediately after
get_specials returned), it still feels as if it was a bug waiting to
happen.
ssh.c