From: Ben Pfaff Date: Sat, 24 Nov 2007 22:14:43 +0000 (+0000) Subject: (short_names_assign): Fix dumb typo, in which `i' was written where X-Git-Tag: v0.6.0~181 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1681b02fcc7f30319a7be2b9db199b7e5e4967e;p=pspp-builds.git (short_names_assign): Fix dumb typo, in which `i' was written where `j' was meant. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index c66ddbd7..bba433b8 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,12 @@ +2007-11-24 Ben Pfaff + + Fix warning reported when reading back system files that include + very long string variables. Thanks to Guido Gay 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 Properly write variables that include a range of missing values to diff --git a/src/data/short-names.c b/src/data/short-names.c index 3ed99c04..6a997f53 100644 --- a/src/data/short-names.c +++ b/src/data/short-names.c @@ -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,