aboutsummaryrefslogtreecommitdiffstats
path: root/src/pattern.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-12 09:08:45 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-12 09:08:45 +0100
commit4977648064f7bdf5b8a8c928fe904ad296429342 (patch)
tree06ae3bafa29f9c92f50a31d50e73f18382e32fb5 /src/pattern.c
parentupdate readme (diff)
downloadscrotty-4977648064f7bdf5b8a8c928fe904ad296429342.tar.gz
scrotty-4977648064f7bdf5b8a8c928fe904ad296429342.tar.bz2
scrotty-4977648064f7bdf5b8a8c928fe904ad296429342.tar.xz
fix bug + allow piping
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/pattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern.c b/src/pattern.c
index 4075a6f..0a14dd5 100644
--- a/src/pattern.c
+++ b/src/pattern.c
@@ -184,9 +184,9 @@ evaluate (const char *restrict pattern, int fbno, long width,
if (try_evaluate (buffer, size, pattern, fbno, width, height, path) < 0)
{
+ size <<= 1;
if (errno == ENAMETOOLONG)
goto retry;
- size <<= 1;
goto fail;
}