You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.4 KiB
29 lines
1.4 KiB
3 years ago
|
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) );
|
||
|
|