]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[faxd/CopyQuality.c++] Missing {} in case statement.
authorTim Rice <tim@multitalents.net>
Sun, 29 May 2005 21:03:52 +0000 (21:03 +0000)
committerTim Rice <tim@multitalents.net>
Sun, 29 May 2005 21:03:52 +0000 (21:03 +0000)
faxd/CopyQuality.c++

index bb00969e2f50cd5b7ccddbe4f5aaf95ff0993942..701091663e9ecf81a01300d4a3be8928d920779e 100644 (file)
@@ -557,14 +557,16 @@ FaxModem::writeECMData(TIFF* tif, u_char* buf, u_int cc, const Class2Params& par
 
        case DF_JBIG_BASIC:
            //search for NEWLEN Marker Segment in JBIG Bi-Level Image Data
-           for (int i = 0; i < cc-2; i++) {
-               if (buf[i] == 0xFF && buf[i+1] == 0x05) {
-                   recvEOLCount = 256*256*256*buf[i+2];
-                   recvEOLCount += 256*256*buf[i+3];   
-                   recvEOLCount += 256*buf[i+4];
-                   recvEOLCount += buf[i+5];
-
-                   protoTrace("RECV: Found NEWLEN Marker Segment in BID, Yd = %d", recvEOLCount);
+           {
+               for (int i = 0; i < cc-2; i++) {
+                   if (buf[i] == 0xFF && buf[i+1] == 0x05) {
+                       recvEOLCount = 256*256*256*buf[i+2];
+                       recvEOLCount += 256*256*buf[i+3];   
+                       recvEOLCount += 256*buf[i+4];
+                       recvEOLCount += buf[i+5];
+
+                       protoTrace("RECV: Found NEWLEN Marker Segment in BID, Yd = %d", recvEOLCount);
+                   }
                }
            }
            break;