/*
- * Copyright (c) 1984-1987 by the Regents of the
- * University of California and by Gregory Glenn Minshall.
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
*
- * Permission to use, copy, modify, and distribute these
- * programs and their documentation for any purpose and
- * without fee is hereby granted, provided that this
- * copyright and permission appear on all copies and
- * supporting documentation, the name of the Regents of
- * the University of California not be used in advertising
- * or publicity pertaining to distribution of the programs
- * without specific prior permission, and notice be given in
- * supporting documentation that copying and distribution is
- * by permission of the Regents of the University of California
- * and by Gregory Glenn Minshall. Neither the Regents of the
- * University of California nor Gregory Glenn Minshall make
- * representations about the suitability of this software
- * for any purpose. It is provided "as is" without
- * express or implied warranty.
+ * Redistribution and use in source and binary forms are permitted
+ * provided that this notice is preserved and that due credit is given
+ * to the University of California at Berkeley. The name of the University
+ * may not be used to endorse or promote products derived from this
+ * software without specific prior written permission. This software
+ * is provided ``as is'' without express or implied warranty.
*/
#ifndef lint
-static char sccsid[] = "@(#)outbound.c 1.22 (Berkeley) %G%";
-#endif /* lint */
-
+static char sccsid[] = "@(#)outbound.c 3.3 (Berkeley) %G%";
+#endif /* not lint */
#include <stdio.h>
*/
i = WhereAttrByte(BufferAddress);
c = FieldAttributes(i);
- for (i = Addr3270(buffer[0], buffer[1]); i != BufferAddress;
- BufferAddress = ScreenInc(BufferAddress)) {
+ i = Addr3270(buffer[0], buffer[1]);
+ do {
if (IsStartField(BufferAddress)) {
c = FieldAttributes(BufferAddress);
} else if (!IsProtectedAttr(BufferAddress, c)) {
AddHost(BufferAddress, 0);
}
- }
+ BufferAddress = ScreenInc(BufferAddress);
+ } while (i != BufferAddress);
buffer += 2;
count -= 2;
break;