Path: utzoo!attcan!uunet!portal!cup.portal.com!Jinfu From: Jinfu@cup.portal.com Newsgroups: comp.sys.apollo Subject: Re: How does ios_dir_$open work? Message-ID: <8180@cup.portal.com> Date: 16 Aug 88 07:15:12 GMT References: <8808122122.AA14782@mailgw.cc.umich.edu> Organization: The Portal System (TM) Lines: 29 XPortal-User-Id: 1.1001.2934 I don't understand why following codes don't work: #include#include main(argc, argv) int argc; char *argv; { char *str1; strcpy(str1, argv[1]); } The runtime error is 'access violation'. If I change definition of str1 to array, the code will work: char str1[256]; Our system is running 9.7 with BSD4.2. Is this my misunderstanding of strcpy or just another 'It is fixed in SR10' bug? (after all, isn't it nice to hear this than, say, involling 50 nodes in your network? :-) Jinfu Chen