The old inp_deckcopy() is a safer way of copying, while retaining

the correct line numbers for parameter substitution.
This commit is contained in:
Holger Vogt 2020-12-16 14:26:12 +01:00
parent b1d062668c
commit 014dfe1b7b
1 changed files with 1 additions and 2 deletions

View File

@ -614,11 +614,10 @@ doit(struct card *deck, wordlist *modnames) {
*/
if (sss) {
// tprint(sss->su_def);
struct card *su_deck = inp_deckcopy_ln(sss->su_def);
struct card *su_deck = inp_deckcopy(sss->su_def);
/* If we have modern PDKs, we have to reduce the amount of memory required.
We try to reduce the models to the one really used.
Otherwise su_deck is full of unused binning models.*/
// struct card* su_deck = NULL;
if ((newcompat.hs || newcompat.spe) && c->w > 0 && c->l > 0) {
/* extract wmin, wmax, lmin, lmax */
struct card* new_deck = su_deck;