Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site zinfandel.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!talcott!panda!genrad!decvax!tektronix!zehntel!zinfandel!ed
From: ed@zinfandel.UUCP (Ed Hirgelt)
Newsgroups: net.lang.c
Subject: Re: C programming hint
Message-ID: <443@zinfandel.UUCP>
Date: Fri, 12-Jul-85 17:06:59 EDT
Article-I.D.: zinfande.443
Posted: Fri Jul 12 17:06:59 1985
Date-Received: Thu, 18-Jul-85 20:28:36 EDT
References: <899@teddy.UUCP> <244@harvard.ARPA>
Reply-To: ed@zinfandel.UUCP (Ed Hirgelt)
Organization: Zehntel Inc., Walnut Creek CA
Lines: 11
Keywords: strncpy
Summary: Missing NULL character

I may be mistaken, but this hint also has a problem in not null
terminating the string. strncpy stops at the first null character
or when the count is exceeded. Since the initial version of the
string has no null, one is never added to the string. This may
be what the poster intended, but he should never use that string
with any of the other string utilities (like strcmp, etc.)
-- 
Ed Hirgelt
Zehntel Automation Systems	{ihnp4 ucbvax}!zehntel!ed
2625 Shadelands Drive		zehntel!ed@Berkeley.ARPA
Walnut Creek, Ca 94598