[PATCH 1/2] kernel/tests: Implement safe local strcat function.

Saulius Krasuckas saulius2 at ar.fi.lt
Tue Jul 4 06:23:17 CDT 2006


* On Tue, 4 Jul 2006, Dmitry Timoshkov wrote:
> * "Saulius Krasuckas" <saulius2 at ar.fi.lt> wrote:
> > 
> > By "safe" I meant it doesn't overflow buffer.  Does it do?
> 
> There are other ways to achieve that. Once Alexandre already commented 
> out an almost the same approach someone tried to port from ReactOS to 
> Wine.

Hm, I don't remember this.  Can you give me an example of a nice way, 
please?  It was one "if" that I removed in my patch.  Maybe you mean this 
way? 

If so, I don't understand how embracing every testable function call by an 
"if" statement looks better than local strcat-wrapper.



More information about the wine-devel mailing list