Module: sip-router
Branch: jh/33plus DELETED
Commit: 81d63a1737506c0b34e4450b5867ab37ad584faf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=81d63a1…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Alex Hermann <alex(a)speakup.nl>
Date: Thu Sep 29 13:03:47 2011 +0200
modules_k/sqlops: use signed int to string conversion for sql.val transformation
integer variables in kamailio are signed by default, conversion to string should be signed
also.
---
modules_k/sqlops/sql_trans.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/sqlops/sql_trans.c b/modules_k/sqlops/sql_trans.c
index eaf3fb8..2710fc3 100644
--- a/modules_k/sqlops/sql_trans.c
+++ b/modules_k/sqlops/sql_trans.c
@@ -42,7 +42,7 @@ static int _tr_eval_sql_val(pv_value_t *val)
static char _tr_buffer[TR_BUFFER_SIZE];
if(val->flags&PV_TYPE_INT || !(val->flags&PV_VAL_STR)) {
- val->rs.s = int2str(val->ri, &val->rs.len);
+ val->rs.s = sint2str(val->ri, &val->rs.len);
val->flags = PV_VAL_STR;
return 0;
}