From: SCPCD Date: Tue, 27 Dec 2011 14:39:05 +0000 (+0000) Subject: In "doobject" : X-Git-Tag: v1.7.1~49 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=commitdiff_plain;h=7f0a3d2213a29266ce48cbe2aae7f3533468487c In "doobject" : - 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 --- diff --git a/rln.c b/rln.c index 7eebe68..50d0e6a 100644 --- 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;