diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-08 15:18:29 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-08 15:18:29 +0000 |
commit | 00b51a3cf5847b1c1d23c2bdc068c1a1c8557021 (patch) | |
tree | 9cc7c7a4d339c22a626bd7de73b913b25e8d3c65 /games/hack/help | |
parent | b42a153f2ead9d9ec3b0c08fbf863771074b7622 (diff) |
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy(). Prevents excessive resource
usage when displaying very long lines. OK deraadt@, krw@ and otto@
Diffstat (limited to 'games/hack/help')
0 files changed, 0 insertions, 0 deletions