mirror of https://github.com/octoleo/lsyncd.git
bugfix: fix the buffer size of pipemsg
This commit is contained in:
parent
3c9f88330b
commit
367d5e940a
2
lsyncd.c
2
lsyncd.c
|
@ -1246,7 +1246,7 @@ l_exec( lua_State *L )
|
||||||
struct pipemsg *pm;
|
struct pipemsg *pm;
|
||||||
logstring( "Exec", "adding pipe observance" );
|
logstring( "Exec", "adding pipe observance" );
|
||||||
pm = s_calloc( 1, sizeof( struct pipemsg ) );
|
pm = s_calloc( 1, sizeof( struct pipemsg ) );
|
||||||
pm->text = s_calloc( pipe_len + 1, sizeof( char * ) );
|
pm->text = s_calloc( pipe_len + 1, sizeof( char ) );
|
||||||
memcpy( pm->text, pipe_text, pipe_len + 1 );
|
memcpy( pm->text, pipe_text, pipe_len + 1 );
|
||||||
pm->tlen = pipe_len;
|
pm->tlen = pipe_len;
|
||||||
pm->pos = len;
|
pm->pos = len;
|
||||||
|
|
Loading…
Reference in New Issue