Thu Mar 10 03:29:40 ART 2005  Alberto Bertogli (albertogli@telpin.com.ar)
  * Fix transaction lenght checking.
  If we don't cast to a bigger value, there is no way the check can be positive.
  Also, initialize the lenght to 0.
diff -rN -u old-libjio/trans.c new-libjio/trans.c
--- old-libjio/trans.c	2005-03-10 15:15:11.504714719 -0300
+++ new-libjio/trans.c	2005-03-10 15:15:11.524712570 -0300
@@ -102,6 +102,7 @@
 	ts->flags = fs->flags;
 	ts->op = NULL;
 	ts->numops = 0;
+	ts->len = 0;
 	pthread_mutexattr_init(&attr);
 	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
 	pthread_mutex_init( &(ts->lock), &attr);
@@ -146,7 +147,7 @@
 		return 0;
 	}
 
-	if (ts->len + count > MAX_TSIZE) {
+	if ((long long) ts->len + count > MAX_TSIZE) {
 		pthread_mutex_unlock(&(ts->lock));
 		return 0;
 	}


