wok rev 21776

linld: fix strdup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 11 12:50:44 2019 +0200 (3 months ago)
parents 48e8f1257eab
children de6c5f0bf7ea
files linld/stuff/src/CRTL.ASM
line diff
     1.1 --- a/linld/stuff/src/CRTL.ASM	Wed Jul 10 23:26:20 2019 +0300
     1.2 +++ b/linld/stuff/src/CRTL.ASM	Thu Jul 11 12:50:44 2019 +0200
     1.3 @@ -511,12 +511,12 @@
     1.4  ;***************************************************************
     1.5  	global	@strdup$qpxzc:near
     1.6  @strdup$qpxzc:
     1.7 -		mov	ax,[_heap_top]
     1.8 -		xchg	ax,bx
     1.9 +		call	xchg_heap_top
    1.10  		call	@strcpy$qpxzct1
    1.11  		xchg	ax,bx
    1.12  xchg_heap_top:
    1.13  		xchg	ax,[_heap_top]
    1.14 +		xchg	ax,bx
    1.15  		ret
    1.16  
    1.17          global  @malloc_or_die$qui:near