Bug Fix: Cured preceeding spaces in IBT notes

This commit is contained in:
JamDog
2010-11-04 16:47:09 +00:00
parent e557626162
commit 222be04ec5
4 changed files with 59 additions and 2 deletions

View File

@@ -148,7 +148,7 @@ static IBT_DATA *read_ibt( char *filename, FILE *fp )
{
case 'B':
if (!str_cmp(word, "Body")) STRFREE(ibtData->body);
KEY("Body", ibtData->body, fread_string( fp, buf ));
KEY("Body", ibtData->body, fread_clean_string( fp, buf ));
break;
case 'E':
@@ -185,7 +185,7 @@ static IBT_DATA *read_ibt( char *filename, FILE *fp )
if (!str_cmp(word, "Name") && ibtData->name) STRFREE(ibtData->name);
if (!str_cmp(word, "Notes") && ibtData->notes) STRFREE(ibtData->notes);
TXT_KEY("Name", ibtData->name, fread_line( fp ));
KEY("Notes", ibtData->notes, fread_string( fp, buf ));
KEY("Notes", ibtData->notes, fread_clean_string( fp, buf ));
break;
case 'R':