aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2012-11-05 22:53:00 +0800
committerolgeni <olgeni@FreeBSD.org>2012-11-05 22:53:00 +0800
commit1a2008df39db2b14b8817bf7613b03c76cc30fa8 (patch)
tree1f192f7d5bce6deb5d632eaf5fd784872381a973
parent474d56769debbd671f77aa2c70a6a1ced2e13239 (diff)
downloadfreebsd-ports-gnome-1a2008df39db2b14b8817bf7613b03c76cc30fa8.tar.gz
freebsd-ports-gnome-1a2008df39db2b14b8817bf7613b03c76cc30fa8.tar.zst
freebsd-ports-gnome-1a2008df39db2b14b8817bf7613b03c76cc30fa8.zip
Fix 64-bit bug in odbcserver application:
- encode_out_params should perform cast using SQL_INTEGER* rather than long*. Submitted by: Joseph Wayne Norton <norton@lovely.email.ne.jp> on erlang-bugs Feature safe: yes
-rw-r--r--lang/erlang/Makefile1
-rw-r--r--lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 6c6d9f2acb3f..f0b80c5478bb 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= 15.b.02
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= lang parallel java
MASTER_SITES= http://www.erlang.org/download/:erlangorg \
diff --git a/lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c b/lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c
new file mode 100644
index 000000000000..ebe18ff695f6
--- /dev/null
+++ b/lang/erlang/files/patch-lib_odbc_c__src_odbcserver.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- lib/odbc/c_src/odbcserver.c.orig
++++ lib/odbc/c_src/odbcserver.c
+@@ -1150,7 +1150,7 @@
+ (column.type.strlen_or_indptr_array[j]));
+ break;
+ case SQL_C_SLONG:
+- ei_x_encode_long(&dynamic_buffer(state), ((long*)values)[j]);
++ ei_x_encode_long(&dynamic_buffer(state), ((SQLINTEGER*)values)[j]);
+ break;
+ case SQL_C_DOUBLE:
+ ei_x_encode_double(&dynamic_buffer(state),