1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/archivers/ha/files/patch-aa

20 lines
663 B
Plaintext
Raw Normal View History

1995-01-24 16:43:33 +00:00
*** nix/machine.c.bak Thu Jan 12 09:53:00 1995
--- nix/machine.c Tue Jan 24 19:38:07 1995
***************
*** 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;