1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Documented __strip_double_slash() and plugged in a memmove()

in place of the copying loop.

- Modified __translate_unix_to_amiga_path_name() and
  __translate_amiga_to_unix_path_name() to not to call strlen()
  on the results of __strip_double_slash().


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14951 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-05-15 12:32:59 +00:00
parent 13c857ba0a
commit a1ffc20864
5 changed files with 37 additions and 25 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: unistd_translatea2u.c,v 1.5 2005-04-24 08:46:37 obarthel Exp $
* $Id: unistd_translatea2u.c,v 1.6 2005-05-15 12:32:59 obarthel Exp $
*
* :ts=4
*
@ -89,9 +89,7 @@ __translate_amiga_to_unix_path_name(char const ** name_ptr,struct name_translati
strcpy(local_replacement,name);
name = local_replacement;
__strip_double_slash(name,len);
len = strlen(name);
len = __strip_double_slash(name,len);
}
/* The empty string corresponds to the current