ANU News Patch Patch ID: 940128_newsdist.c!terry@spcvxb.spc.edu Date: 28-Jan-1994 Author: Terry Kennedy terry@spcvxb.spc.edu News Version: 6.1beta8 News Files: NewsDist.C Description: Allocates longer char arrays for path header copies in sys_remote_send, so long headers don't overrun arrays and clobber stat buffer used to obtain information about item file. Superseded: String dynamically allocated in version 6.1beta9 distribution. *** newsdist.c --- newsdist_new.c ************** *** 66,68 **-- **/ --- 66,71 ----- + ** V6.1b8 28-Jan-1994 terry@spcvxb.spc.edu (Terry Kennedy) + ** - Fixed string overrun in sys_remote_send which clobbered stat + ** buffer for item file. **-- **/ ************** *** 1056,1063 *test_node; { #if DIST_PATH_CHECK ! char match_node[NODE_SIZE]; ! char lpath[NODE_SIZE]; strcpy(lpath,path); lower_case(lpath); --- 1059,1071 ----- *test_node; { #if DIST_PATH_CHECK ! /* tmk change ! * char match_node[NODE_SIZE]; ! * char lpath[NODE_SIZE]; ! * tmk change */ ! ! char match_node[1024]; ! char lpath[1024]; strcpy(lpath,path); lower_case(lpath); *** patchlist.h;-1 --- patchlist.h ************** *** 1,1 =+=+= End =+=+= --- 1,2 ----- + 940128_newsdist.c!terry@spcvxb.spc.edu =+=+= End =+=+=