mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 19:52:00 +00:00
Make sure the target buffer is null terminated so we don't blow up
strcat when its called. llvm-svn: 21533
This commit is contained in:
parent
cffd5bc2f3
commit
7b130447d0
@ -10,6 +10,7 @@ implementation ; Functions:
|
||||
int %main () {
|
||||
%target = alloca [1024 x sbyte]
|
||||
%arg1 = getelementptr [1024 x sbyte]* %target, int 0, int 0
|
||||
store sbyte 0, sbyte* %arg1
|
||||
%arg2 = getelementptr [6 x sbyte]* %hello, int 0, int 0
|
||||
%rslt = call sbyte* %strcat(sbyte* %arg1, sbyte* %arg2)
|
||||
ret int 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user