summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-03-22 11:23:20 -0300
committermongo <andmarti@gmail.com>2017-03-22 11:23:20 -0300
commit20cd9915edca83745666095d3a999212ddccdf68 (patch)
treed30792d64d670712a32d8dab773467cf0e6a992b /src/gram.y
parentacee0f13aae017548fa46d2cb960ff180a1b226d (diff)
print_graph now uses malloc and realloc
Diffstat (limited to 'src/gram.y')
-rw-r--r--src/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gram.y b/src/gram.y
index c1cd307..70f5176 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -379,7 +379,7 @@ command:
S_LET var_or_range '=' e { let($2.left.vp, $4);
}
| S_DETAIL var {
- char det[20000] = "";
+ char det[BUFFERSIZE] = "";
struct ent * e = $2.vp;
sprintf(det + strlen(det), "row: %d\n", e->row);