dws@cs.wisc.edu (DaviD W. Sanderson) (12/20/90)
I have already sent this fix to the Elm Coordinator. I am posting it here for those people who want to use the patchlevel 10 newalias until the next patch to Elm... > I upgraded to patchlevel 10 of elm2.3 today and discovered that the > patch broke newalias. The reason is that the new check in newalias.c > for checking that there are exactly two equal signs in an alias leaves > the variable j nonzero. Subsequent code assumed j was zero, resulting > in newalias creating an alias file with no addresses (not too useful). > Here is the fix I applied: -------------------------------------------------------------------- *** utils/newalias.c0 Wed Dec 19 17:41:52 1990 --- utils/newalias.c Wed Dec 19 19:33:44 1990 *************** *** 255,261 **** aliases[i] = buffer[i]; aliases[i] = '\0'; ! for (i=strlen(buffer)-1; buffer[i] != '=' && i > 0; i--) address[j++] = buffer[i]; address[j] = '\0'; --- 255,261 ---- aliases[i] = buffer[i]; aliases[i] = '\0'; ! for (i=strlen(buffer)-1, j=0; buffer[i] != '=' && i > 0; i--) address[j++] = buffer[i]; address[j] = '\0'; -------------------------------------------------------------------- ___ / __\ U N S H I N E DaviD W. Sanderson | | | I N E dws@cs.wisc.edu _____| | |_____ ________ \ / \ |__/ /////__ Fusion Powered Locomotives Made to Order \____/ \__|_/ \\\\\______ (TARDIS model available at extra cost)