37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
*** nix/machine.c.orig Thu Jan 12 01:53:00 1995
|
|
--- nix/machine.c Tue Nov 25 16:46:54 1997
|
|
***************
|
|
*** 336,342 ****
|
|
static char ts[22];
|
|
struct tm *tim;
|
|
|
|
! tim=localtime((long *)&t);
|
|
sprintf(ts,"%04d-%02d-%02d %02d:%02d",tim->tm_year+1900,tim->tm_mon+1,
|
|
tim->tm_mday,tim->tm_hour,tim->tm_min);
|
|
return ts;
|
|
--- 336,342 ----
|
|
static char ts[22];
|
|
struct tm *tim;
|
|
|
|
! tim=localtime((time_t *)&t);
|
|
sprintf(ts,"%04d-%02d-%02d %02d:%02d",tim->tm_year+1900,tim->tm_mon+1,
|
|
tim->tm_mday,tim->tm_hour,tim->tm_min);
|
|
return ts;
|
|
***************
|
|
*** 417,423 ****
|
|
if (plainname!=NULL) free(plainname),plainname=NULL;
|
|
if ((plainname=malloc(strlen(mdfullpath)+1))==NULL)
|
|
error(1,ERR_MEM,"md_stripname()");
|
|
! for (i=strlen(mdfullpath)-1;i>0;i--) {
|
|
if (mdfullpath[i]=='/') {
|
|
i++;
|
|
break;
|
|
--- 417,423 ----
|
|
if (plainname!=NULL) free(plainname),plainname=NULL;
|
|
if ((plainname=malloc(strlen(mdfullpath)+1))==NULL)
|
|
error(1,ERR_MEM,"md_stripname()");
|
|
! for (i=strlen(mdfullpath)-1;i>=0;i--) {
|
|
if (mdfullpath[i]=='/') {
|
|
i++;
|
|
break;
|