Module: sip-router
Branch: andrei/rve_f_params
Commit: 3ea6da788168d95a28ea5ec86fc137a3338df104
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3ea6da7…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 4 16:22:11 2010 +0200
core: fix "unsigned" bug in sint2str*()
Due to a typo, the sint2str*() functions did not include the sign
most of the times.
---
ut.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ut.h b/ut.h
index 18dc46e..1e4b2b4 100644
--- a/ut.h
+++ b/ut.h
@@ -365,7 +365,7 @@ static inline char* sint2strbuf(long l, char* r, int r_size, int*
len)
l = -l;
}
p = int2strbuf((unsigned long)l, r, r_size, &p_len);
- if(sign && *len<(r_size-1)) {
+ if(sign && p_len<(r_size-1)) {
*(--p) = '-';
p_len++;;
}