diff --git a/udpxrec.c b/udpxrec.c index c58ceb5..eb186f3 100644 --- a/chipmunk/udpxrec.c +++ b/chipmunk/udpxrec.c @@ -604,9 +604,9 @@ int udpxrec_main( int argc, char* const argv[] ) } else { if( g_recopt.bg_time < now ) { - (void)strncpy( now_buf, Zasctime(localtime( &now )), + (void)memcpy( now_buf, Zasctime(localtime( &now )), sizeof(now_buf) ); - (void)strncpy( sel_buf, + (void)memcpy( sel_buf, Zasctime(localtime( &g_recopt.bg_time )), sizeof(sel_buf) ); @@ -634,9 +634,9 @@ int udpxrec_main( int argc, char* const argv[] ) } else { if( g_recopt.end_time < now ) { - (void)strncpy( now_buf, Zasctime(localtime( &now )), + (void)memcpy( now_buf, Zasctime(localtime( &now )), sizeof(now_buf) ); - (void)strncpy( sel_buf, + (void)memcpy( sel_buf, Zasctime(localtime( &g_recopt.end_time )), sizeof(sel_buf) );