- fix signed/unsigned comparisions
- cast malloc return value

--HG--
branch : HEAD
diff --git a/lib/zip_error_strerror.c b/lib/zip_error_strerror.c
index 90c56a1..6e726a2 100644
--- a/lib/zip_error_strerror.c
+++ b/lib/zip_error_strerror.c
@@ -1,5 +1,5 @@
 /*
-  $NiH: zip_error_strerror.c,v 1.2 2003/10/06 02:50:06 dillo Exp $
+  $NiH: zip_error_strerror.c,v 1.3 2004/11/17 21:55:11 wiz Exp $
 
   zip_error_sterror.c -- get string representation of struct zip_error
   Copyright (C) 1999, 2003 Dieter Baron and Thomas Klausner
@@ -78,7 +78,8 @@
     if (ss == NULL)
 	return zs;
     else {
-	if ((s=malloc(strlen(ss) + (zs ? strlen(zs)+2 : 0) + 1)) == NULL)
+	if ((s=(char *)malloc(strlen(ss)
+			      + (zs ? strlen(zs)+2 : 0) + 1)) == NULL)
 	    return _zip_err_str[ZIP_ER_MEMORY];
 	
 	sprintf(s, "%s%s%s",