File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ started 7.38.4 23/6/14
2
+ - fix memccpy() in tool.c, thanks khindenburg
3
+
1
4
started 7.38.3 16/5/14
2
5
- fix tiny timeout error
3
6
Original file line number Diff line number Diff line change 1
1
# Process this file with autoconf to produce a configure script.
2
2
3
- AC_INIT ( [ nip2] , [ 7.38.3 ] )
3
+ AC_INIT ( [ nip2] , [ 7.38.4 ] )
4
4
# foreign stops complaints about a missing README (we use README.md instead)
5
5
# and missing INSTALL (the standard Gnu INSTALL is not very useful)
6
6
AM_INIT_AUTOMAKE ( [ -Wall foreign] )
16
16
17
17
m4_define ( [ nip_major_version] , [ 7] )
18
18
m4_define ( [ nip_minor_version] , [ 38] )
19
- m4_define ( [ nip_micro_version] , [ 3 ] )
19
+ m4_define ( [ nip_micro_version] , [ 4 ] )
20
20
m4_define ( [ nip_version] ,
21
21
[ nip_major_version.nip_minor_version.nip_micro_version] )
22
22
Original file line number Diff line number Diff line change @@ -412,18 +412,20 @@ toolitem_set_name( Toolitem *toolitem, PElement *root )
412
412
result ) {
413
413
if ( class_get_member_string ( root ,
414
414
MEMBER_LABEL , value , MAX_NAME ) ) {
415
+ char * p , * q ;
416
+
415
417
/* Save the i18n-ed version.
416
418
*/
417
419
IM_SETSTR ( toolitem -> label , _ ( value ) );
418
420
419
421
/* Strip underscores (they mark mnemonics). Can't use
420
- * strrcpy(), we have overlapping blocks.
422
+ * strrcpy() or memccpy() , we have overlapping blocks.
421
423
*/
422
424
im_strncpy ( value , toolitem -> label , MAX_NAME );
423
- for ( i = 0 ; value [ i ]; i ++ )
424
- if ( value [ i ] = = '_' )
425
- memccpy ( value + i , value + i + 1 ,
426
- 0 , MAX_NAME - i ) ;
425
+ for ( p = q = value ; * p ; p ++ )
426
+ if ( * p ! = '_' )
427
+ * q ++ = * p ;
428
+ * q = '\0' ;
427
429
IM_SETSTR ( toolitem -> name , value );
428
430
}
429
431
You can’t perform that action at this time.
0 commit comments