Commit Graph

5 Commits

Author SHA1 Message Date
Thomas Ries
0900b8feb0 adapted copyright 2007-06-08 19:43:20 +00:00
Thomas Ries
46c602c6db - Various fixes due to a code review by Andrew Jones 2006-10-13 17:40:09 +00:00
Thomas Ries
757f34b748 - a number of size_t fixes
- REGISTER response generated from siproxd must include
  a Contact header.

1. tell gcc that the logging functions use printf style
format strings. This gets gcc to tell us about a lot
of the problems.

2. size_t is not an int on AMD64, so don't treat it
like one. I've changed to use "%ld" format code and
cast to a long, which should work well enough.

3. some format strings didn't match the argument lists.
These fixes are pretty clear.

4. log_debug, log_error, log_warn, log_info could all
end up evaluating their varargs list multiple times if
the message was to be logged to multiple places. This
causes the second/third uses to access invalid memory
and potentially segfault. I fixed this by using
va_copy() to copy the varargs list for each use.
2006-05-20 11:48:53 +00:00
Thomas Ries
70c90f0292 - short-dial: use "302 Moved" to point to target 2006-01-01 20:31:55 +00:00
Thomas Ries
9ac6fd6f0a - Added Quick Dial feature 2005-12-26 16:39:12 +00:00