BSD 4_4_Lite1 release
[unix-history] / usr / src / sys / pmax / dev / if_le.c
index 1666818..8c3d3bd 100644 (file)
@@ -33,7 +33,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *     @(#)if_le.c     8.1 (Berkeley) 6/29/93
+ *     @(#)if_le.c     8.2 (Berkeley) 11/16/93
  */
 
 #include <le.h>
  */
 
 #include <le.h>
@@ -1169,7 +1169,7 @@ copytobuf_gap2(from, lebuf, boff, len)
                bptr = ((volatile u_short *)lebuf) + boff;
        if ((unsigned)from & 0x1) {
                while (len > 1) {
                bptr = ((volatile u_short *)lebuf) + boff;
        if ((unsigned)from & 0x1) {
                while (len > 1) {
-                       *bptr = (from[1] << 8) | from[0];
+                       *bptr = (from[1] << 8) | (from[0] & 0xff);
                        bptr += 2;
                        from += 2;
                        len -= 2;
                        bptr += 2;
                        from += 2;
                        len -= 2;