X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=oldrecover-src%2Fset_commands.c;h=d3712df9cb486632818912c9608d4f2eefcc5ec6;hb=d74dc4d908fcbc1a4ef474edaf51e61ec90eab6b;hp=a0c83babd339769127d9473b0e4313eb7a79cc98;hpb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;p=debian%2Famanda diff --git a/oldrecover-src/set_commands.c b/oldrecover-src/set_commands.c index a0c83ba..d3712df 100644 --- a/oldrecover-src/set_commands.c +++ b/oldrecover-src/set_commands.c @@ -391,7 +391,7 @@ cd_dir( if(dir[strlen(dir)-1] == '/') dir[strlen(dir)-1] = '\0'; /* remove last / */ /* remove everything before the last / */ - dir1 = rindex(dir,'/'); + dir1 = strrchr(dir,'/'); if (dir1) { dir1++; dir2 = stralloc(dir1);