nickel@rondane.cs.tu-berlin.de (Juergen Nickelsen) (05/09/91)
pefv700@skelly.pe.utexas.edu (Christopher Phillips) pointed me to a typo which may perhaps never be dangerous, but I want to correct it anyway. This is the patch: *** ../olock/locktty.c Thu May 9 14:07:34 1991 --- locktty.c Thu May 9 14:11:07 1991 *************** *** 1,5 **** /* locktty - lock terminal ! * version 1.1 * * compile with cc -o locktty locktty.c -lcurses -ltermcap * Usage: locktty [ -p ] --- 1,5 ---- /* locktty - lock terminal ! * version 1.1 patchlevel 1 * * compile with cc -o locktty locktty.c -lcurses -ltermcap * Usage: locktty [ -p ] *************** *** 246,252 **** srand(time(NULL)) ; salt[0] = SALTC[rand() % strlen(SALTC)] ; salt[1] = SALTC[rand() % strlen(SALTC)] ; ! salt[3] = '\0' ; /* read and verify password */ fputs("Enter password: ", stdout) ; --- 246,252 ---- srand(time(NULL)) ; salt[0] = SALTC[rand() % strlen(SALTC)] ; salt[1] = SALTC[rand() % strlen(SALTC)] ; ! salt[2] = '\0' ; /* read and verify password */ fputs("Enter password: ", stdout) ; Applying this patch results in locktty 1.1, patchlevel 1. I hope there are no more such things. Greetings, Juergen. -- Juergen Nickelsen nickel@cs.tu-berlin.de