projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FLIP: Eliminate false dependency on VAR_NAME_LEN.
[pspp-builds.git]
/
src
/
language
/
stats
/
flip.c
diff --git
a/src/language/stats/flip.c
b/src/language/stats/flip.c
index d08f1b862b3ed4ec19afc70f7b3b2696ad27095a..487417bab149c682fb16c2047d3d416da50e9ffd 100644
(file)
--- a/
src/language/stats/flip.c
+++ b/
src/language/stats/flip.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2009, 2010
, 2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-209,7
+209,7
@@
cmd_flip (struct lexer *lexer, struct dataset *ds)
make_new_var (dict, flip->new_names.names[i]);
else
{
make_new_var (dict, flip->new_names.names[i]);
else
{
- char s[
VAR_NAME_LEN
+ 1];
+ char s[
3 + INT_STRLEN_BOUND (i)
+ 1];
sprintf (s, "VAR%03zu", i);
dict_create_var_assert (dict, s, 0);
}
sprintf (s, "VAR%03zu", i);
dict_create_var_assert (dict, s, 0);
}