projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Did some more work on bug 12859 and then realized that a *good*
[pspp]
/
src
/
loop.c
diff --git
a/src/loop.c
b/src/loop.c
index 6470d7ce77782e3f802ae51afed94013f9f2e461..b6df5c2d6263aac1e4d81532a582448f17b6fe60 100644
(file)
--- a/
src/loop.c
+++ b/
src/loop.c
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
#include <config.h>
#include "error.h"
#include <config.h>
#include "error.h"
@@
-166,7
+166,7
@@
static int
internal_cmd_loop (void)
{
/* Name of indexing variable if applicable. */
internal_cmd_loop (void)
{
/* Name of indexing variable if applicable. */
- char name[
9
];
+ char name[
LONG_NAME_LEN + 1
];
/* Create and initialize transformations to facilitate
error-handling. */
/* Create and initialize transformations to facilitate
error-handling. */
@@
-224,7
+224,7
@@
internal_cmd_loop (void)
}
}
else
}
}
else
- name[0] =
0
;
+ name[0] =
'\0'
;
/* Parse IF clause. */
if (lex_match_id ("IF"))
/* Parse IF clause. */
if (lex_match_id ("IF"))
@@
-243,7
+243,7
@@
internal_cmd_loop (void)
}
/* Find variable; create if necessary. */
}
/* Find variable; create if necessary. */
- if (name[0])
+ if (name[0]
!= '\0'
)
{
two->index = dict_lookup_var (default_dict, name);
if (!two->index)
{
two->index = dict_lookup_var (default_dict, name);
if (!two->index)