Path: utzoo!attcan!uunet!aplcen!samsung!usc!ucsd!ucbvax!THUMPER.BELLCORE.COM!nsb From: nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) Newsgroups: comp.soft-sys.andrew Subject: Re: Sun4 AMS oddity Message-ID: Date: 22 Dec 89 15:14:55 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 I think I've figured it out, but I can't test it just now. The entire bug would be explained perfectly if the "Template" parameter passed in to the BuildCaption function had not been initialized properly. This appears to be the case in at least one important place -- ams/libs/ms/newmail.c, line 147. A fix would be to add a line (line 139 looks like a good place) that says: CaptionTemplateList[i].basictype = BASICTEMPLATE_NORMAL; I think this will fix the bug, but it will be a while (like, next decade) before I can test it -- if someone else is motivated to test it, you should report the results. However, I'm pretty sure this is the bug. Someone should probably also grep for all the other uses of BuildCaption to make sure all the template parameters are properly initialized. -- Nathaniel PS -- all will work fine if the structure is initially zero, which may explain why it ususally works for most people. -- NB