diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-11-19 15:48:31 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-11-19 15:48:31 +0000 |
commit | b5d41c297c8fe0075b0f8c9412ab4f82a91685a5 (patch) | |
tree | 77530de15a53f664d01db9bec8fd055e11959a05 /x11 | |
parent | Unbroke for 4-stable. (diff) |
Remove the (char *) from the sizeof the vsnprintf line since this
restricts the buffer size to 4 bytes rather than the 256 bytes
intended
PR: 32100
Submitted by: Christopher Hall <hsw@acm.org>
Notes
Notes:
svn path=/head/; revision=50221
Diffstat (limited to 'x11')
-rw-r--r-- | x11/rxvt-devel/files/patch-src::command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11/rxvt-devel/files/patch-src::command.c b/x11/rxvt-devel/files/patch-src::command.c index 32cabe35a474..3aa7b9478e6e 100644 --- a/x11/rxvt-devel/files/patch-src::command.c +++ b/x11/rxvt-devel/files/patch-src::command.c @@ -5,7 +5,7 @@ va_start(arg_ptr, fmt); - vsprintf((char *)buf, fmt, arg_ptr); -+ vsnprintf((char *)buf, sizeof((char *) buf), fmt, arg_ptr); ++ vsnprintf((char *)buf, sizeof(buf), fmt, arg_ptr); va_end(arg_ptr); rxvt_tt_write(r, buf, (unsigned int)STRLEN(buf)); } |