(short_names_assign): Fix dumb typo, in which `i' was written where
authorBen Pfaff <blp@gnu.org>
Sat, 24 Nov 2007 22:14:43 +0000 (22:14 +0000)
committerBen Pfaff <blp@gnu.org>
Sat, 24 Nov 2007 22:14:43 +0000 (22:14 +0000)
`j' was meant.

src/data/ChangeLog
src/data/short-names.c

index c66ddbd7c0210b798934fff8d8de1ca2002123e5..bba433b8428eb1a939d9242c114dbc5014970cdd 100644 (file)
@@ -1,3 +1,12 @@
+2007-11-24  Ben Pfaff  <blp@gnu.org>
+
+       Fix warning reported when reading back system files that include
+       very long string variables.  Thanks to Guido Gay <gay@irer.it> for
+       reporting this bug.
+
+       * short-names.c (short_names_assign): Fix dumb typo, in which `i'
+       was written where `j' was meant.
+
 2007-11-18  Ben Pfaff  <blp@gnu.org>
 
        Properly write variables that include a range of missing values to
index 3ed99c04c2417792696f2eafe72351fb571f47f7..6a997f53f24ae9e6c04a5b0f80f007785f5e9ee1 100644 (file)
@@ -181,7 +181,7 @@ short_names_assign (struct dictionary *d)
       struct variable *v = dict_get_var (d, i);
       int segment_cnt = sfm_width_to_segments (var_get_width (v));
       for (j = 1; j < segment_cnt; j++)
-        claim_short_name (v, i, short_names);
+        claim_short_name (v, j, short_names);
     }
 
   /* Assign short names to first segment of remaining variables,