aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-21 08:24:13 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-21 08:24:13 +0000
commit87629a1c5044939820c1a78f7f097ebfe2d2b14b (patch)
tree70658ff18d2eb8a6f7ccb1babe483b9e8c0ef254 /io
parent4b5b009cc3045ca026b061ce55160bd1eeb0888c (diff)
downloadglibc-87629a1c5044939820c1a78f7f097ebfe2d2b14b.zip
glibc-87629a1c5044939820c1a78f7f097ebfe2d2b14b.tar.gz
glibc-87629a1c5044939820c1a78f7f097ebfe2d2b14b.tar.bz2
[BZ #1960]
2005-12-21 Ulrich Drepper <drepper@redhat.com> [BZ #1960] * io/fts.c (fts_open): Avoid function call in MAX macro use.
Diffstat (limited to 'io')
-rw-r--r--io/fts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io/fts.c b/io/fts.c
index f0df56c..bf18299 100644
--- a/io/fts.c
+++ b/io/fts.c
@@ -120,7 +120,8 @@ fts_open(argv, options, compar)
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
- if (fts_palloc(sp, MAX(fts_maxarglen(argv), MAXPATHLEN)))
+ size_t maxarglen = fts_maxarglen(argv);
+ if (fts_palloc(sp, MAX(maxarglen, MAXPATHLEN)))
goto mem1;
/* Allocate/initialize root's parent. */