[Info-vax] Whither VMS?

VAXman- at SendSpamHere.ORG VAXman- at SendSpamHere.ORG
Sat Oct 3 11:27:38 EDT 2009


In article <02d7462e$0$20630$c3e8da3 at news.astraweb.com>, Mark Daniel <mark.daniel at wasd.vsm.com.au> writes:
>VAXman- @SendSpamHere.ORG wrote:
>> In article <ha6oek$gn9$02$1 at news.t-online.com>, Michael Kraemer <M.Kraemer at gsi.de> writes:
>>> Jordi Guillaumes i Pons schrieb:
>>>
>>>> Programmers are, some times, lazy. Specially when they work under 
>>>> unrealistic schedules and not enough resources. 
>>> I don't buy that. Errors of the kind below are not
>>> due to lack of resources.
>>>
>>>> You can find a lot of 
>>>> things like this in production:
>>>>
>>>> void someFunction(char *someString) {
>>>>     char aBuffer[1024];
>>>>     strcpy(aBuffer, someString);
>> 
>> strncpy!!
>
>strncpy() may not overflow but then it does not terminate the copied 
>chars when that happens either.  The whole null-termination approach is 
>a crock (much as I use it).

Yup.  Stupid.  

-- 
VAXman- A Bored Certified VMS Kernel Mode Hacker    VAXman(at)TMESIS(dot)ORG

  http://www.quirkfactory.com/popart/asskey/eqn2.png
  
  "Well my son, life is like a beanstalk, isn't it?"



More information about the Info-vax mailing list