1
vote
1answer
108 views

How can I improve this C style va_args replacement?

I inherited a lot of C code with many ellipsis (variadic) function. So I have a lots of API with the following signature. void getXY(int foo, ...) // many parameters and this is used in this way ...
0
votes
2answers
75 views

May be a memory leak somewhere or allocated memory not freed? [closed]

Here is the entire program, please help me, I've tried everything to find out what exactly is going with the memory. The problem is everything runs perfectly, but there are some extra characters ...
0
votes
1answer
241 views

Is my login function secure ? how to improve it?

Using cakePHP, I would love to have your point of view about this large source code, i am not sure if its enought secure. sha1() will be removed with another script. I found this large script can be ...