Merge "fix the wrong code to set the terminate char"

This commit is contained in:
Zuul 2018-11-29 15:12:42 +00:00 committed by Gerrit Code Review
commit 0fe41e4184
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ void _get_field ( char * src_ptr , int field, char * dst_ptr )
for ( dst_ptr-- ; *dst_ptr == ' ' ; dst_ptr-- ) { *dst_ptr = '\0' ; }
/* terminate the line after the last real non-space char */
++dst_ptr = '\0' ;
*(++dst_ptr) = '\0' ;
return ;