fixed canonicalize_pathname() breakage: fixed str_move() function (memmove semantics...
commit96fc77bc3ee1f2ae2ae7c0a14d3bf08975b4cb66
authorSergei Trofimovich <slyfox@inbox.ru>
Sat, 7 Feb 2009 14:10:33 +0000 (7 16:10 +0200)
committerSergei Trofimovich <slyfox@inbox.ru>
Sat, 7 Feb 2009 14:10:33 +0000 (7 16:10 +0200)
tree8750ffddb0782fdd3cbc88309d652e50ffa7c743
parente0aba5d5885358850186f5b1620f4b96383dce99
fixed canonicalize_pathname() breakage: fixed str_move() function (memmove semantics) again

This patch reintroduces fix firstly appeared in (and recently broken by mhl revert)
>   commit e48cb7c89ff3e54de70130a3de2136a9902a023d
>   Author: Sergei Trofimovich <st@anti-virus.by>
>   Date:   Fri Jan 30 09:31:28 2009 +0200
>
>        mhl: added mhl_strmove() function (memmove semantics)
...
>            Snippet of man strcpy:
>       DESCRIPTION
>               The  strcpy()  function copies the string pointed to by src, including the terminating
>               null byte ('\0'), to the buffer pointed to by dest.  ___The strings may not overlap___,
>               and the destination string dest must be  large enough to receive the copy.
>       We used strcpy to move data chunk in memory: "./foo" -> "foo", etc.
>
>       This patch introduces mhl_strmove and fixed canonicalize_pathname.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
src/util.h