diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-12 09:08:45 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-12 09:08:45 +0100 |
commit | 4977648064f7bdf5b8a8c928fe904ad296429342 (patch) | |
tree | 06ae3bafa29f9c92f50a31d50e73f18382e32fb5 /src/pattern.c | |
parent | update readme (diff) | |
download | scrotty-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.c | 2 |
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; } |