aboutsummaryrefslogtreecommitdiff
path: root/center.c
diff options
context:
space:
mode:
Diffstat (limited to 'center.c')
-rw-r--r--center.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/center.c b/center.c
index 10e8130..d4d724e 100644
--- a/center.c
+++ b/center.c
@@ -101,8 +101,8 @@ main(int argc, char **argv)
void
center(FILE *fp)
{
- char *line = NULL;
- size_t bs = 0;
+ static char *line = NULL;
+ static size_t bs = 0;
while (getline(&line, &bs, fp) != -1) {
int len, tabs = 0;