Subj : Re: Software Job Market Myths To : comp.programming,comp.software-eng From : Chris Sonnack Date : Thu Aug 18 2005 12:03 pm Joe Wright writes: >e.g.> char* strconcat(char* s1, char* s2) >e.g.> { >e.g.> char buf[256]; >e.g.> >e.g.> strcpy(buf, s1); >e.g.> strcat(buf, s2); >e.g.> >e.g.> return buf; >e.g.> } > The killer is that 'char buf[256]' automatic and disappears > with 'return buf;'. And the opportunity for rampant buf overruns! Those are the two you'd hope ANY C programmer would catch. -- |_ CJSonnack _____________| How's my programming? | |_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL | |_____________________________________________|_______________________| .