aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teirney <david@teirney.net>2012-01-04 21:35:14 +1300
committerDavid Teirney <david@teirney.net>2012-01-04 21:35:14 +1300
commite8a7c6351e58658328be24341f750196082ca751 (patch)
treec36146f06d612ba70e2f6dccf01812f799bac52f
parent638d02ba94a2696035302ee86fc02d5f7375332b (diff)
Fixed overflow error with long long being cast to a long resulting in a negative number on occasion. Typically this seems to have effected the program length of recordings. Thanks to Charles Barnwell from the MVPMC community for the patch.
-rw-r--r--lib/cmyth/libcmyth/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmyth/libcmyth/socket.c b/lib/cmyth/libcmyth/socket.c
index 9d3a405f8a..f1f9a455fa 100644
--- a/lib/cmyth/libcmyth/socket.c
+++ b/lib/cmyth/libcmyth/socket.c
@@ -998,7 +998,7 @@ cmyth_rcv_int64(cmyth_conn_t conn, int *err, long long *buf, int count)
/*
* Got a result, return it.
*/
- *buf = (long)(sign * val);
+ *buf = (long long)(sign * val);
return consumed;
}