/[pspp]/pspp/src/dictionary.c
ViewVC logotype

Diff of /pspp/src/dictionary.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by jmd, Sat Apr 23 07:55:29 2005 UTC revision 1.18 by jmd, Sat Apr 23 09:27:24 2005 UTC
# Line 422  dict_create_var_x (struct dictionary *d, Line 422  dict_create_var_x (struct dictionary *d,
422    else    else
423      {      {
424        const char *sn = make_short_name(d, name);        const char *sn = make_short_name(d, name);
425        strncpy(v->name, sn, SHORT_NAME_LEN);        strncpy(v->name, sn, SHORT_NAME_LEN + 1);
426        free(sn);        free(sn);
427      }      }
428        
# Line 774  dict_rename_vars (struct dictionary *d, Line 774  dict_rename_vars (struct dictionary *d,
774        assert (strlen (new_names[i]) <= LONG_NAME_LEN );        assert (strlen (new_names[i]) <= LONG_NAME_LEN );
775                
776        sn = make_short_name(d, new_names[i]);        sn = make_short_name(d, new_names[i]);
777        strncpy(vars[i]->name, sn, SHORT_NAME_LEN);        strncpy(vars[i]->name, sn, SHORT_NAME_LEN + 1);
778        free(sn);        free(sn);
779                
780    
# Line 1272  make_short_name(struct dictionary *dict, Line 1272  make_short_name(struct dictionary *dict,
1272          strcat(d, suffix);          strcat(d, suffix);
1273    }    }
1274    
1275    
1276    return d;    return d;
1277  }  }
1278    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26