Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!lll-lcc!pyramid!batcomputer!tedcrane From: tedcrane@batcomputer.UUCP Newsgroups: comp.os.vms Subject: Re: Found: Getting identification information from .EXE file Message-ID: <836@batcomputer.tn.cornell.edu> Date: Wed, 29-Apr-87 11:03:16 EDT Article-I.D.: batcompu.836 Posted: Wed Apr 29 11:03:16 1987 Date-Received: Fri, 1-May-87 03:14:48 EDT References: <8704281243.AA18094@ucbvax.Berkeley.EDU> Reply-To: tedcrane@tcgould.tn.cornell.edu.UUCP (Ted Crane) Distribution: world Organization: Program of Computer Graphics, Cornell University Lines: 13 In article <8704281243.AA18094@ucbvax.Berkeley.EDU> nagy%43198.hepnet%lbl.arpa@LBL.ARPA writes: > MOVAB IHI$T_IMGID(R6),R0 ;Get pointer to ID string (ASCIC) > MOVZBL (R0)+,R1 ;Get string length and text pointer > MOVC3 R1,(R0),@1*4(AP) ;Move ID text > CLRB (R3) ;Add NUL terminator after dest. text Please note that that string copy (and the others for the 2nd and 3rd args) have the potential to overwrite data in the calling routine. There is no check to compare the length of the resultant string to the size of the buffer which will receive it. Since this is intended for use w/ C, might it be better to call the C RTL routine "strcpy" to do the work?