Skip to content

Commit

Permalink
whpcvt: do code more transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jul 4, 2024
1 parent 23a3c8b commit 9af6be7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bld/whpcvt/c/ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* Open Watcom Project
*
* Copyright (c) 2002-2022 The Open Watcom Contributors. All Rights Reserved.
* Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
Expand Down Expand Up @@ -952,7 +952,7 @@ static void output_section_ib( section_def *section )

// output the label and the break
label = p;
label_len = len + 1;
label_len = len;
p += len + 1;

// find the length of the link context
Expand All @@ -971,15 +971,15 @@ static void output_section_ib( section_def *section )
if( ctx == NULL && ch != IB_HLINK_BREAK ) {
warning_msg( "Link to nonexistent context", line );
printf( "For topic=%s\n", topic );
whp_fwrite( Out_file, label, 1, label_len - 1 );
whp_fwrite( Out_file, label, 1, label_len );
} else {
// now we start writing the hyper-link
if( Hyperlink_Braces ) {
whp_fprintf( Out_file, IB_PLAIN_LINK_BEG_STR );
} else {
whp_fprintf( Out_file, IB_HLINK_STR );
}
whp_fwrite( Out_file, label, 1, label_len );
whp_fwrite( Out_file, label, 1, label_len + 1 );
if( ctx != NULL ) {
str_out_ib( ctx->title );
} else {
Expand Down

0 comments on commit 9af6be7

Please sign in to comment.