# # Patch name: Bugfix for NveidGoodies+TrivStuff.173p2 # Patch version: 0.1 # Author's name: Cloud # Author's email: cstrife@1ststreet.com # Version of PennMUSH: 1.7.4pl7 # Date patch made: 7/18/2001 # Author is willing to support (yes/no): Yes # Patch format: Context Diff # # # This is a contributed PennMUSH patch. Its use is subject to the # same restrictions found in PennMUSH's hdrs/copyrite.h file. # # No warranty is given for this patch. It is not necessarily going # to work on your system, with any version of PennMUSH other than # the one above, etc. # # If the author given above was willing to support the patch, you # should write to the author if you have any questions or problems. Do # *NOT* send email messages to Javelin or any PennMUSH mailing list about # this patch! # # Below this line is the author's description of the patch, # followed by the patch itself. If the patch is in context diff # format, you'll probably apply it by typing: patch < patchfile # in your top-level MUSH directory, unless instructed otherwise # below. # This fixes the segmentation fault when using trigger(). Apply this patch only to the version named NveidGoodies+TrivStuff.173p2, earlier versions didn't have the problem. *** ./src/funlocal.c Wed Jul 18 18:58:24 2001 --- ../new/pennmush/src/funlocal.c Wed Jul 18 19:00:58 2001 *************** *** 50,58 **** } FUNCTION(local_fun_trigger) { ! if(!command_check_byname(executor, "@trigger")) safe_str("#-1 PERMISSION DENIED", buff, bp); ! else do_trigger(executor, args[0], args); } FUNCTION(local_fun_myswitch) { --- 50,66 ---- } FUNCTION(local_fun_trigger) { ! char *arg[11]; ! int i; ! if(!command_check_byname(executor, "@trigger")){ safe_str("#-1 PERMISSION DENIED", buff, bp); ! return; ! } ! for(i=1;i<10;i++) { ! arg[i]=args[i]; ! } ! arg[10]=NULL; ! do_trigger(executor, args[0], arg); } FUNCTION(local_fun_myswitch) {