diff dmtext_bm.c @ 102:751af3f0e3f2

Oops, 100L :(
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 20:34:53 +0300
parents 8bba97252d85
children 7160c1d71ade
line wrap: on
line diff
--- a/dmtext_bm.c	Tue Oct 02 20:33:32 2012 +0300
+++ b/dmtext_bm.c	Tue Oct 02 20:34:53 2012 +0300
@@ -121,7 +121,7 @@
     if (font == NULL)
         return DMERR_NULLPTR;
     
-    if (start < 0 || end < start)
+    if (start < 0 || size < 1)
         return DMERR_INVALID_ARGS;
     
     for (i = 0; i < font->nglyphs; i++)