aboutsummaryrefslogtreecommitdiff
path: root/archivers/ha
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/ha')
-rw-r--r--archivers/ha/files/patch-nix_machine.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/archivers/ha/files/patch-nix_machine.c b/archivers/ha/files/patch-nix_machine.c
index 0bdd3610fb1a..735343ea7fd5 100644
--- a/archivers/ha/files/patch-nix_machine.c
+++ b/archivers/ha/files/patch-nix_machine.c
@@ -1,19 +1,11 @@
-*** 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;
+--- nix/machine.c.orig 1995-01-12 06:53:00 UTC
++++ nix/machine.c
+@@ -417,7 +417,7 @@ char *md_stripname(char *mdfullpath) {
+ 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--) {
++ for (i=strlen(mdfullpath)-1;i>=0;i--) {
+ if (mdfullpath[i]=='/') {
+ i++;
+ break;