projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d99288
)
Fix crash in tabulating long-string variables in CROSSTABS.
author
Ben Pfaff
<blp@gnu.org>
Thu, 16 Oct 2008 03:48:15 +0000
(20:48 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Thu, 16 Oct 2008 03:48:15 +0000
(20:48 -0700)
Fixes bug #24557.
src/language/stats/crosstabs.q
patch
|
blob
|
history
diff --git
a/src/language/stats/crosstabs.q
b/src/language/stats/crosstabs.q
index 4c5309bfda6e1dd0053331ee9da3f8029b5c8a27..e16c8dc2a04b30553df92d27998bf5f8bcac4938 100644
(file)
--- a/
src/language/stats/crosstabs.q
+++ b/
src/language/stats/crosstabs.q
@@
-1674,7
+1674,7
@@
enum_var_values (struct table_entry **entries, int entry_cnt, int var_idx,
if (mode == GENERAL)
{
- int width =
var_get_width (v
);
+ int width =
MIN (var_get_width (v), MAX_SHORT_STRING
);
int i;
*values = xnmalloc (entry_cnt, sizeof **values);