From 9aa411409dce1b5e66c8ad880803d81b87f8aecc Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Thu, 30 Aug 2012 15:49:07 +0400 Subject: [PATCH] fixed on_done argument length; thanks to Paul Howes (phowes). --- ngx_rtmp_notify_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngx_rtmp_notify_module.c b/ngx_rtmp_notify_module.c index aef8241..086acdd 100644 --- a/ngx_rtmp_notify_module.c +++ b/ngx_rtmp_notify_module.c @@ -431,8 +431,8 @@ ngx_rtmp_notify_save_name_args(ngx_rtmp_session_t *s, ngx_rtmp_set_ctx(s, ctx, ngx_rtmp_notify_module); } - ngx_memcpy(ctx->name, name, sizeof(name)); - ngx_memcpy(ctx->args, args, sizeof(args)); + ngx_memcpy(ctx->name, name, NGX_RTMP_MAX_NAME); + ngx_memcpy(ctx->args, args, NGX_RTMP_MAX_ARGS); }