[argyllcms] [PATCH] timeout and spectro/conv.c

  • From: Dominic Jänichen <d.newsgroups@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sun, 13 Apr 2014 22:49:05 +0200

Debugging timeout problems with a DTP-94 I noticed some time values to
be much to large due to a unsigned integer overflow in msec_time.
Please find attached a patch to correct a typo leading to this.

Dominic


--- a/spectro/conv.c    2014-04-12 13:15:16.499529081 +0200
+++ b/spectro/conv.c    2014-04-12 13:15:55.652173993 +0200
@@ -580,7 +580,7 @@
     cv.tv_sec -= startup.tv_sec;
     if (startup.tv_nsec > cv.tv_nsec) {
         cv.tv_sec--;
-        cv.tv_nsec += 100000000;
+        cv.tv_nsec += 1000000000;
     }
     cv.tv_nsec -= startup.tv_nsec;




Other related posts: