diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-26 14:28:32 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-26 14:28:32 +1100 |
commit | 08d61505d7229aaa5484439b2f2e98add3052afe (patch) | |
tree | 4d3938cba3683bf29da0286b09b3f2dd4e1c06d5 | |
parent | 1c13bd8d799ced6e2e8234a1d2409c30e7d67815 (diff) |
- deraadt@cvs.openbsd.org 2006/03/25 18:43:30
[channels.c]
use strtonum() instead of atoi() [limit X screens to 400, sorry]
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | channels.c | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -165,6 +165,9 @@ - deraadt@cvs.openbsd.org 2006/03/25 18:41:45 [ssh-agent.c] mark two more signal handlers ARGSUSED + - deraadt@cvs.openbsd.org 2006/03/25 18:43:30 + [channels.c] + use strtonum() instead of atoi() [limit X screens to 400, sorry] 20060325 - OpenBSD CVS Sync @@ -4422,4 +4425,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.4282 2006/03/26 03:28:14 djm Exp $ +$Id: ChangeLog,v 1.4283 2006/03/26 03:28:32 djm Exp $ @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.244 2006/03/25 13:17:01 djm Exp $ */ +/* $OpenBSD: channels.c,v 1.245 2006/03/25 18:43:30 deraadt Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -3079,7 +3079,7 @@ x11_request_forwarding_with_spoofing(int client_session_id, const char *disp, if (cp) cp = strchr(cp, '.'); if (cp) - screen_number = atoi(cp + 1); + screen_number = (u_int)strtonum(cp + 1, 0, 400, NULL); else screen_number = 0; |