home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3308 < prev    next >
Encoding:
Internet Message Format  |  1991-05-10  |  1.5 KB

  1. From: nickel@rondane.cs.tu-berlin.de (Juergen Nickelsen)
  2. Newsgroups: alt.sources
  3. Subject: locktty -- lock terminal, patch 01 for version 1.1
  4. Message-ID: <NICKEL.91May9142846@rondane.cs.tu-berlin.de>
  5. Date: 9 May 91 12:28:46 GMT
  6.  
  7. pefv700@skelly.pe.utexas.edu (Christopher Phillips) pointed me to a
  8. typo which may perhaps never be dangerous, but I want to correct it
  9. anyway. This is the patch:
  10.  
  11. *** ../olock/locktty.c    Thu May  9 14:07:34 1991
  12. --- locktty.c    Thu May  9 14:11:07 1991
  13. ***************
  14. *** 1,5 ****
  15.   /* locktty - lock terminal 
  16. !  * version 1.1
  17.    *
  18.    * compile with cc -o locktty locktty.c -lcurses -ltermcap
  19.    * Usage: locktty [ -p ]
  20. --- 1,5 ----
  21.   /* locktty - lock terminal 
  22. !  * version 1.1 patchlevel 1
  23.    *
  24.    * compile with cc -o locktty locktty.c -lcurses -ltermcap
  25.    * Usage: locktty [ -p ]
  26. ***************
  27. *** 246,252 ****
  28.       srand(time(NULL)) ;
  29.       salt[0] = SALTC[rand() % strlen(SALTC)] ;
  30.       salt[1] = SALTC[rand() % strlen(SALTC)] ;
  31. !     salt[3] = '\0' ;
  32.   
  33.       /* read and verify password */
  34.       fputs("Enter password:  ", stdout) ;
  35. --- 246,252 ----
  36.       srand(time(NULL)) ;
  37.       salt[0] = SALTC[rand() % strlen(SALTC)] ;
  38.       salt[1] = SALTC[rand() % strlen(SALTC)] ;
  39. !     salt[2] = '\0' ;
  40.   
  41.       /* read and verify password */
  42.       fputs("Enter password:  ", stdout) ;
  43.  
  44. Applying this patch results in locktty 1.1, patchlevel 1.
  45. I hope there are no more such things.
  46.  
  47. Greetings, Juergen.
  48.  
  49. --
  50. Juergen Nickelsen                               nickel@cs.tu-berlin.de
  51.