summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-01-02 10:18:50 +0100
committerJim Meyering <meyering@redhat.com>2011-08-20 17:29:54 +0200
commitb0edb0fc72a8d2c706f4144867b6795b49103f85 (patch)
treee3e0f4bb8d55c36950eb3709d4d3756ffdc49bbf /src/main.c
parentf4c4b1b107f014244142e9b8a27208a5f3ac52b5 (diff)
downloadgrep-b0edb0fc72a8d2c706f4144867b6795b49103f85.tar.gz
maint: use x2nrealloc, not xrealloc
* src/main.c (main): Use x2nrealloc, not xrealloc
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fd9f662e..2cdf82f4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1927,7 +1927,7 @@ main (int argc, char **argv)
{
keycc += cc;
if (keycc == keyalloc - 1)
- keys = xrealloc (keys, keyalloc *= 2);
+ keys = x2nrealloc (keys, &keyalloc, sizeof *keys);
}
if (fp != stdin)
fclose(fp);