diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-04-24 19:13:57 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-04-24 19:13:57 +0000 |
commit | 81d526270463844aec19caa761aa604da4337704 (patch) | |
tree | 7d4a6cb37ff29459d9b81d0c653ae18f70c1c5d3 /usr.bin/cvs/server.c | |
parent | 0c27ead80b04184f7b702e36712010c78cde1fda (diff) |
Use a fixed string in case of vasprintf() error instead of relying on
strerror(). Although our vasprintf() sets errno, we cannot rely on it on
other systems.
ok ray (who spotted this issue), xsa
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r-- | usr.bin/cvs/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c index 25c8ad35384..05a1d573be4 100644 --- a/usr.bin/cvs/server.c +++ b/usr.bin/cvs/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.85 2008/04/18 20:26:07 tobias Exp $ */ +/* $OpenBSD: server.c,v 1.86 2008/04/24 19:13:56 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -150,7 +150,7 @@ cvs_server_send_response(char *fmt, ...) i = vasprintf(&data, fmt, ap); va_end(ap); if (i == -1) - fatal("cvs_server_send_response: %s", strerror(errno)); + fatal("cvs_server_send_response: could not allocate memory"); cvs_log(LP_TRACE, "%s", data); cvs_remote_output(data); |