See ChangeLog entry 2003-10-12 17:35 UTC-0500 David G. Holm <dholm@jsd-llc.com>

This commit is contained in:
David G. Holm
2003-11-12 22:35:20 +00:00
parent c9529069c0
commit a2fdf10ca1
2 changed files with 8 additions and 1 deletions

View File

@@ -8,6 +8,12 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2003-10-12 17:35 UTC-0500 David G. Holm <dholm@jsd-llc.com>
* utils/hbver/hbverfix.c
! Include closing quote in string built by szReplaceQuoted.
! Strip newline chars from end of log entry.
2003-10-12 17:15 UTC-0500 David G. Holm <dholm@jsd-llc.com>
* utils/hbver/hbverfix.c

View File

@@ -96,7 +96,7 @@ char * szReplaceQuoted( char * szBuffer, const char * new_string )
char * szClosing = strchr( szOpening + 1, 34 ); /* Locate ending quote */
if( szClosing )
{
strncpy( szOldBuf, szClosing + 1, MAX_BUF_LEN );
strncpy( szOldBuf, szClosing, MAX_BUF_LEN );
szOldBuf[ MAX_BUF_LEN - 1 ] = '\0';
strncpy( szOpening + 1, new_string, MAX_BUF_LEN - ( szOpening - szBuffer ) );
szBuffer[ MAX_BUF_LEN - 1 ] = '\0';
@@ -248,6 +248,7 @@ int main( int argc, char * argv[] )
bFoundLog = TRUE;
strncpy( szNewLog, szInputBuffer, sizeof( szNewLog ) );
szNewLog[ sizeof( szNewLog ) - 1 ] = '\0';
szNewLog[ strcspn( szNewLog, "\r\n" ) ] = '\0'; /* Strip newline chars */
if( iDebugLevel >= 0 ) fprintf( stderr, "\nLOG: %s\n", szInputBuffer );
}
else if( iDebugLevel > 0 ) fprintf( stderr, " ===> %c %c %c %c <===", szInputBuffer[ 4 ], szInputBuffer[ 7 ], szInputBuffer[ 10 ], szInputBuffer[ 13 ] );