diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-21 17:58:08 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-21 17:58:08 +0000 |
commit | 363a37d52016e0a16e3599d690f610346fc6898a (patch) | |
tree | 35ce1129736b9c6833c2e5eda5c6015b7897c67f /slirp/misc.c | |
parent | c93e7817ee963d9441f6706d6f194ff02cec690f (diff) | |
download | hqemu-363a37d52016e0a16e3599d690f610346fc6898a.zip hqemu-363a37d52016e0a16e3599d690f610346fc6898a.tar.gz |
Fix OpenBSD linker warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5044 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index 337f8a8..032a1f7 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -417,8 +417,9 @@ fork_exec(struct socket *so, const char *ex, int do_pty) { char buff[256]; - sprintf(buff, "Error: execvp of %s failed: %s\n", - argv[0], strerror(errno)); + snprintf(buff, sizeof(buff), + "Error: execvp of %s failed: %s\n", + argv[0], strerror(errno)); write(2, buff, strlen(buff)+1); } close(0); close(1); close(2); /* XXX */ |