[libglnx] dirfd: Fix inverted precondition in previous tmpname commit
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libglnx] dirfd: Fix inverted precondition in previous tmpname commit
- Date: Tue, 31 May 2016 16:44:07 +0000 (UTC)
commit afe3c3a86178c29ceaa3a5e46397ab2fa97202b3
Author: Colin Walters <walters verbum org>
Date: Tue May 31 09:29:08 2016 -0400
dirfd: Fix inverted precondition in previous tmpname commit
I swear I tested it...
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]