diff options
Diffstat (limited to 'sysutils/mkisofs/patches/patch-ac')
-rw-r--r-- | sysutils/mkisofs/patches/patch-ac | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sysutils/mkisofs/patches/patch-ac b/sysutils/mkisofs/patches/patch-ac index fe958460161..033ec19e961 100644 --- a/sysutils/mkisofs/patches/patch-ac +++ b/sysutils/mkisofs/patches/patch-ac @@ -1,6 +1,6 @@ ---- name.c.orig Sat Mar 15 04:02:46 1997 -+++ name.c Mon Apr 28 11:50:47 1997 -@@ -57,6 +57,7 @@ +--- name.c.orig Thu Apr 10 04:41:48 1997 ++++ name.c Wed Oct 29 12:11:01 1997 +@@ -58,6 +58,7 @@ const char * pnt; int priority = 32767; char * result; @@ -8,13 +8,15 @@ int seen_dot = 0; int seen_semic = 0; int tildes = 0; -@@ -104,12 +105,17 @@ +@@ -105,13 +106,17 @@ last_dot = strrchr (pnt,'.'); if( (last_dot != NULL) && ( (last_dot[1] == '~') - || (last_dot[1] == '\0') || (last_dot[1] == '\0')) ) { +- c = last_dot; +- *c = '\0'; + /* + * We gotta copy the string first, to work around its constness. + */ @@ -22,9 +24,9 @@ + memcpy (copy, name, strlen(name) + 1); + pnt = copy; + last_dot = strrchr (pnt,'.'); - *last_dot = '\0'; ++ *last_dot = '\0'; last_dot = strrchr (pnt,'.'); -- *last_dot = '.'; +- *c = '.'; } while(*pnt) |