Hello,

I have sent you two patches for opencdk in quick succession on January 17, and
only one of them has been applied. Just so that you don't need to delve into the
archive, here is the other patch again. It is for handling DOS-style line
endings (/r/n) correctly.

Thanks in advance!

Signed-off-by: Daniel A. Nagy <[email protected]>
--- a/src/stream.c      2007-11-08 19:31:45.000000000 +0100
+++ b/src/stream.c      2011-01-17 20:30:19.000000000 +0100
@@ -1384,7 +1384,9 @@
   while (!cdk_stream_eof (s) && count > 0)
     {
       c = cdk_stream_getc (s);
-      if (c == EOF || c == '\r' || c == '\n' ) 
+      if (c == '\r')
+        c = cdk_stream_getc (s);
+      if (c == EOF || c == '\n' )
        {
          buf[i++] = '\0';
          break;

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to