VMS: for testutil, make sure to use BIO_f_linebuffer
[openssl.git] / crypto / bio / bf_lbuf.c
index 812ed3f4529dbbfa509e0b0600ec47b2e6e206ce..2a4d1e698b13c0c5eee21624272d829d6dd0a693 100644 (file)
@@ -120,9 +120,10 @@ static int linebuffer_write(BIO *b, const char *in, int inl)
 
     do {
         const char *p;
+        char c;
 
-        for (p = in; p < in + inl && *p != '\n'; p++) ;
-        if (*p == '\n') {
+        for (p = in, c = '\0'; p < in + inl && (c = *p) != '\n'; p++) ;
+        if (c == '\n') {
             p++;
             foundnl = 1;
         } else