diff src/libstrfunc.c @ 31:b88ceb81dba2

mege changes from Joe Nahmias
author carl
date Tue, 10 Jul 2007 17:17:28 -0700
parents c508ee15dfca
children 6fe121a971c9
line wrap: on
line diff
--- a/src/libstrfunc.c	Sat Feb 25 16:16:15 2006 -0800
+++ b/src/libstrfunc.c	Tue Jul 10 17:17:28 2007 -0700
@@ -27,7 +27,7 @@
   //register void *dte=data + size;
   register int nc=0;
   
-  if(data == NULL)
+  if ( data == NULL || size == 0 )
     return NULL;
   
   ou=output=(char *)malloc(size / 3 * 4 + (size / 50) + 5);