Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!agate!eris!doug From: doug@eris (Doug Merritt) Newsgroups: comp.sys.amiga Subject: Re: calling all gurus Message-ID: <8725@agate.BERKELEY.EDU> Date: 14 Apr 88 08:42:04 GMT References: <8804051628.AA27845@decwrl.dec.com| <3482@ece-csc.UUCP| <8190@oberon.USC.EDU| <3484@ece-csc.UUCP| <8214@oberon.USC.EDU> <2161@antique.UUCP> Sender: usenet@agate.BERKELEY.EDU Reply-To: doug@eris.UUCP (Doug Merritt) Organization: University of California, Berkeley Lines: 19 In article <2161@antique.UUCP> cjp@vax135.UUCP (Charles Poirier) writes: >In article <8214@oberon.USC.EDU> papa@pollux.usc.edu (Marco Papa) writes: >|... You'll have to do a lot >|of checking to ensure that ALL values are within appropriate ranges, BEFORE >|you do the SetPrefs. This will require a little more work than what you >|described. > >An easy hack would be to just check that the length of the file looks right. >The chances of specifying a garbage file with the proper length are small >enough. No! Remember that we're about to be blessed with 1.3, which is known to have extensions to Preferences. They'll probably extend the length of the file to store this new stuff. Everyone doing something with sizeof(Preferences) or whatever will be ok. Anyone *depending* on the old length remaining forever the same will be out of luck...broken software under 1.3. Sigh...history repeats itself. Doug Merritt doug@mica.berkeley.edu (ucbvax!mica!doug) or ucbvax!unisoft!certes!doug