Merge from vendor branch TNF:
[pkgsrc.git] / comms / ifcico-cm / patches / patch-ao
1 $NetBSD$
2
3 --- ifcico/emsidat.c.orig       Mon Dec 21 09:44:01 1998
4 +++ ifcico/emsidat.c    Mon Dec 21 09:45:53 1998
5 @@ -110,7 +110,7 @@
6         p=xstrcat(p,reldate);
7         p=xstrcat(p,"}{TRX#}{[");
8         (void)time(&tt);
9 -       sprintf(cbuf,"%08lX",mtime2sl(tt));
10 +       sprintf(cbuf,"%08X",mtime2sl(tt));
11         p=xstrcat(p,cbuf);
12         p=xstrcat(p,"]}{TZUTC}{[");
13         p=xstrcat(p,gmtoffset(tt));
14 @@ -130,7 +130,7 @@
15         p=xstrcat(p,flags?flags:"");
16         p=xstrcat(p,"]}");
17  
18 -       sprintf(cbuf,"%04X",strlen(p+12));
19 +       sprintf(cbuf,"%04lX",strlen(p+12));
20         memcpy(p+8,cbuf,4);
21         debug(DBG_HANDSHAKE, "prepared: \"%s\"",p);
22         return p;
23 @@ -354,7 +354,7 @@
24  
25                 p=sel_brace(NULL);
26                 p=sel_bracket(p);
27 -               if (sscanf(p,"%08lx",&tt) == 1)
28 +               if (sscanf(p,"%08x",&tt) == 1)
29                 {
30                         strcpy(ctt,date(sl2mtime(tt)));
31                         loginf("remote     time: %s",ctt);