tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/src sslutils.c
Date Mon, 06 Jun 2005 08:19:18 GMT
mturk       2005/06/06 01:19:18

  Modified:    jni/native/src sslutils.c
  Log:
  Fix reading CRLF and function keys.
  
  Revision  Changes    Path
  1.13      +4 -2      jakarta-tomcat-connectors/jni/native/src/sslutils.c
  
  Index: sslutils.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/sslutils.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- sslutils.c	6 Jun 2005 06:54:19 -0000	1.12
  +++ sslutils.c	6 Jun 2005 08:19:18 -0000	1.13
  @@ -114,7 +114,9 @@
       fputs(prompt, stderr);
       for (i = 0; i < (len - 1); i++) {
           ch = getch();
  -        if (ch == '\n')
  +        if (ch == 0)
  +            ch = getch();
  +        if (ch == '\n' || ch == '\r')
               break;
           else if (ch == '\b') {
               i--;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message