[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. 64b7d98ff7364285828c
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. 64b7d98ff7364285828cd9e50c564ada9931d7d9 |
Date: |
Sun, 19 Sep 2010 09:28:56 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 64b7d98ff7364285828cd9e50c564ada9931d7d9 (commit)
from ccd126e38d122d3717b56bb63e26635d9e48db30 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=64b7d98ff7364285828cd9e50c564ada9931d7d9
commit 64b7d98ff7364285828cd9e50c564ada9931d7d9
Author: Sandro Santilli <address@hidden>
Date: Sun Sep 19 11:28:39 2010 +0200
Fix false error about seeking to end
diff --git a/libbase/tu_file.cpp b/libbase/tu_file.cpp
index 554ac88..3474f08 100644
--- a/libbase/tu_file.cpp
+++ b/libbase/tu_file.cpp
@@ -8,6 +8,8 @@
#include "tu_file.h"
#include "log.h"
+#include <boost/format.hpp>
+#include <cerrno>
#include <cstdio>
#include "GnashFileUtilities.h"
@@ -61,9 +63,12 @@ tu_file::seek(std::streampos pos)
void
tu_file::go_to_end()
{
- std::streampos s = std::fseek(static_cast<FILE*>(m_data), 0, SEEK_END);
- if (s != static_cast<std::streampos>(EOF)) {
- throw IOException("Error while seeking to end");
+ int err = std::fseek(static_cast<FILE*>(m_data), 0, SEEK_END);
+ if (-1 == err ) {
+ boost::format fmt = boost::format(
+ _("Error while seeking to end: %1%")
+ ) % strerror(errno);
+ throw IOException(fmt.str());
}
}
-----------------------------------------------------------------------
Summary of changes:
libbase/tu_file.cpp | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. 64b7d98ff7364285828cd9e50c564ada9931d7d9,
Sandro Santilli <=