28 lines
804 B
Plaintext
28 lines
804 B
Plaintext
Hunk #1: When decoding, the status display has Y2K problem.
|
|
Hunk #2: fix an infinite loop on unsigned char archs (powerpc and arm*)
|
|
|
|
Index: decode.c
|
|
--- decode.c.orig
|
|
+++ decode.c
|
|
@@ -273,8 +273,8 @@ ish_head *head;
|
|
tm.tm_min = (p[1]&0x07)<<3;
|
|
tm.tm_min += p[0]>>5;
|
|
tm.tm_sec = (p[0]&0x1f)<<1;
|
|
- fprintf(stderr,"%02d/%02d/%02d %02d:%02d:%02d ",
|
|
- tm.tm_year,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
|
|
+ fprintf(stderr,"%04d/%02d/%02d %02d:%02d:%02d ",
|
|
+ tm.tm_year+1900,tm.tm_mon+1,tm.tm_mday,tm.tm_hour,tm.tm_min,tm.tm_sec);
|
|
#ifdef __TURBOC__
|
|
memcpy( &timep[0], head->time, 4);
|
|
timep[1] = timep[0];
|
|
@@ -675,8 +675,7 @@ FILE *ipath;
|
|
int maxlen;
|
|
char *buff;
|
|
{
|
|
- int i,j;
|
|
- char c;
|
|
+ int c,i,j;
|
|
|
|
if((decok & 0x80) == 0)
|
|
j=78;
|