aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Teirney <github@teirney.net>2012-01-04 22:20:16 -0800
committerDavid Teirney <github@teirney.net>2012-01-04 22:20:16 -0800
commitd230ebdcdf9b0472caf9abed9d8cf74ab8d038ed (patch)
tree4fe48a3da988fd575161f0836467a79bea2f9289 /lib
parentfb8973038c6a3e7456c488c1ea0d76a52b3ff30e (diff)
parente8a7c6351e58658328be24341f750196082ca751 (diff)
Merge pull request #605 from dteirney/libcmyth
libcmyth fix for negative program length due to overflow during cast
Diffstat (limited to 'lib')
-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;
}