]> Shamusworld >> Repos - rln/commitdiff
In "doobject" :
authorSCPCD <SCPCD@unknown.org>
Tue, 27 Dec 2011 14:39:05 +0000 (14:39 +0000)
committerSCPCD <SCPCD@unknown.org>
Tue, 27 Dec 2011 14:39:05 +0000 (14:39 +0000)
-      strcpy(obj_fname[obj_index], fname);
+      strcpy(obj_fname[obj_index], path_tail(fname)); // SCPCD : get the name of the file instead of all pathname

rln.c

diff --git a/rln.c b/rln.c
index 7eebe68beda260e7e29b1bfd182b97aa40ff8a12..50d0e6a85d38e18eee4d9d189e3cf8038e6d734d 100644 (file)
--- a/rln.c
+++ b/rln.c
@@ -1861,7 +1861,7 @@ int doobject(char *fname, int fd, char *ptr) {
          return(1);
       }
 
-      strcpy(obj_fname[obj_index], fname);
+      strcpy(obj_fname[obj_index], path_tail(fname));          // SCPCD : get the name of the file instead of all pathname
       obj_segsize[obj_index][0] = (getlong(ptr + 4) + secalign) & ~secalign;
       obj_segsize[obj_index][1] = (getlong(ptr + 8) + secalign) & ~secalign;
       obj_segsize[obj_index][2] = (getlong(ptr + 12) + secalign) & ~secalign;