page-first-line: Make the Text column expand as the window is resized.
[pspp] / src / language / xforms / recode.c
index 2849ea32d1510eb74f518506728edf65484bd401..275408de90e7d8a3dbd3fde47628d3ac540d3e27 100644 (file)
@@ -160,6 +160,7 @@ cmd_recode (struct lexer *lexer, struct dataset *ds)
        {
          if ( ! enlarge_dst_widths (trns))
            {
+             recode_trns_free (trns);
              return CMD_FAILURE;
            }
        }
@@ -335,7 +336,7 @@ parse_map_in (struct lexer *lexer, struct map_in *in, struct pool *pool,
          if (lex_token (lexer) == T_ID
              && lex_id_match (ss_cstr ("THRU"), lex_tokss (lexer)))
            {
-             msg (SE, _("THRU is not allowed with string variables."));
+             msg (SE, _("%s is not allowed with string variables."), "THRU");
              return false;
            }
        }
@@ -563,7 +564,7 @@ enlarge_dst_widths (struct recode_trns *trns)
            {
              msg (ME, 
                   _("Cannot recode because the variable %s would require a width of %d bytes or greater, but it has a width of only %d bytes."),
-                  var_get_name (narrow_var), out->width, trns->max_dst_width);
+                  var_get_name (narrow_var), out->width, min_dst_width);
              return false;
            }