1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

Clean up a few warnings

This commit is contained in:
Leland Lucius
2015-04-26 16:46:14 -05:00
parent 4f4acffad1
commit afe47be9e1
3 changed files with 5 additions and 5 deletions

View File

@@ -655,7 +655,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
// "</project>" somewhere.
const int bufsize = 16;
char buf[bufsize + 1];
if (file.SeekEnd(-bufsize) != wxInvalidOffset)
if (file.SeekEnd(-bufsize))
{
if (file.Read(buf, bufsize) == bufsize)
{
@@ -663,7 +663,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
if (strstr(buf, "</project>") == 0)
{
// End of file does not contain closing </project> tag, so add it
if (file.Seek(0, wxFromEnd) != wxInvalidOffset)
if (file.Seek(0, wxFromEnd))
{
strcpy(buf, "</project>\n");
file.Write(buf, strlen(buf));