From: amccullo@ccu1.auckland.ac.nz (Alan MCCulloch)
Newsgroups: comp.databases.oracle
Subject: Re: PRO*C Help
Date: 2 Feb 1995 03:10:26 GMT
Organization: University of Auckland
Lines: 11
Distribution: inet
Message-ID: <3gpif2$mg2@net.auckland.ac.nz>
References: <3giskv$p8@juanita.denver.ssds.com>
NNTP-Posting-Host: ccu1.auckland.ac.nz
X-Newsreader: NN version 6.5.0 #6 (NOV)


Try using strncpy, to ensure that you do not copy more bytes
to the varchar than you should. Its possible you are copying past
the end of your varchar, and stomping the .len field of another
varchar variable, that lives just past the end of the varchar
variable you strcpy to, or possibly you are copying a large number of bytes
to your varchar, bigger than is valid for a varchar ".len" field.
( Its probably best to strncpy one less byte than the size of your
 varchar character array, so that you know for sure that you will
 always end up with a null padded string in there.)

Hope this helps 

