summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xftextent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xftextent.c b/src/xftextent.c
index 20d52db..debf73e 100644
--- a/src/xftextent.c
+++ b/src/xftextent.c
@@ -123,7 +123,7 @@ XftTextExtents8 (Display *dpy,
FT_UInt *glyphs, glyphs_local[NUM_LOCAL];
int i;
- if (len <= 0)
+ if (len < 0)
return;
if (len <= NUM_LOCAL)
@@ -154,7 +154,7 @@ XftTextExtents16 (Display *dpy,
FT_UInt *glyphs, glyphs_local[NUM_LOCAL];
int i;
- if (len <= 0)
+ if (len < 0)
return;
if (len <= NUM_LOCAL)
@@ -185,7 +185,7 @@ XftTextExtents32 (Display *dpy,
FT_UInt *glyphs, glyphs_local[NUM_LOCAL];
int i;
- if (len <= 0)
+ if (len < 0)
return;
if (len <= NUM_LOCAL)
@@ -219,7 +219,7 @@ XftTextExtentsUtf8 (Display *dpy,
int l;
int size;
- if (len <= 0)
+ if (len < 0)
return;
i = 0;
@@ -266,7 +266,7 @@ XftTextExtentsUtf16 (Display *dpy,
int l;
int size;
- if (len <= 0)
+ if (len < 0)
return;
i = 0;