This should fix dvipaste.c so that it will work on big-endian machines as well. Ed Sznyter ews@babel.COM Jun 3, 1993 *** dvipaste.c.new Thu Jun 3 09:30:02 1993 --- dvipaste.c Thu Jun 3 09:29:23 1993 *************** *** 338,347 **** int num; FILE *f; { ! char *p; ! p=(char *)# ! PutByte(*(p+1), f); ! PutByte(*p, f); return; } --- 346,353 ---- int num; FILE *f; { ! PutByte( (num>>8) , f); ! PutByte( (num>>0) , f); return; } *************** *** 351,360 **** FILE *f; { int i; ! char *p; ! p = (char *)&trio; ! for (i=2; i>=0; i--) ! PutByte( *(p+i), f); return; } --- 357,365 ---- FILE *f; { int i; ! PutByte( (trio>>16) , f); ! PutByte( (trio>>8) , f); ! PutByte( (trio>>0) , f); return; } *************** *** 362,372 **** long quad; FILE *f; { ! int i; ! char *p; ! p = (char *)&quad; ! for (i=3; i>=0; i--) ! PutByte( *(p+i), f ); return; } --- 367,376 ---- long quad; FILE *f; { ! PutByte( (quad>>24) , f); ! PutByte( (quad>>16) , f); ! PutByte( (quad>>8) , f); ! PutByte( (quad>>0) , f); return; }