diff options
author | Colin Walters <walters@verbum.org> | 2016-05-31 09:29:08 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-05-31 09:29:08 -0400 |
commit | afe3c3a86178c29ceaa3a5e46397ab2fa97202b3 (patch) | |
tree | 0587b1a66e780eb961ea58700779d2373a8db790 | |
parent | 4919f6ee68c0e64465d83a8832261c477a5d673c (diff) | |
download | libglnx-afe3c3a86178c29ceaa3a5e46397ab2fa97202b3.tar.gz |
dirfd: Fix inverted precondition in previous tmpname commit
I swear I tested it...
-rw-r--r-- | glnx-dirfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-dirfd.c b/glnx-dirfd.c index 4a071cc..95d7fe1 100644 --- a/glnx-dirfd.c +++ b/glnx-dirfd.c @@ -299,7 +299,7 @@ glnx_gen_temp_name (gchar *tmpl) g_return_if_fail (tmpl != NULL); len = strlen (tmpl); - g_return_if_fail (len < 6); + g_return_if_fail (len >= 6); XXXXXX = tmpl + (len - 6); |