]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: syscall: fix argvlen & argv implementation
authorMike Frysinger <vapier@gentoo.org>
Tue, 16 Nov 2021 05:03:50 +0000 (00:03 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 16 Nov 2021 07:09:46 +0000 (02:09 -0500)
commitfab6939b01da06e1b5f423a8c7f72160b0a1e35d
tree7e47092831bee6c4413a3a382ce4cae6b19b36ba
parent8cfc9a1895d9f720e2cc38fd57b94ca5efba07b1
sim: syscall: fix argvlen & argv implementation

Now that we have access to the argv & envp strings, finish implementing
these syscalls.  Delete unused variables, fix tbuf by incrementing the
pointer instead of setting to the length, and make sure we don't write
more data than the bufsize says is available.
sim/common/syscall.c