| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/pfstools/files/ |
Upload File : |
--- src/pfs/pfs.h.orig 2018-02-26 13:58:05 UTC
+++ src/pfs/pfs.h
@@ -141,6 +141,7 @@ namespace pfs
class TagContainer
{
public:
+ virtual ~TagContainer() {};
/**
* Get a string tag of the name tagName from the TagContainer.
* @param tagName name of the tag to retrieve
@@ -187,6 +188,7 @@ namespace pfs
*/
class Channel : public Array2D {
public:
+ virtual ~Channel() {};
/**
* Gets width of the channel (in pixels).
* This is a synonym for Array2D::getCols().
@@ -596,7 +598,9 @@ namespace pfs
*/
Exception( const char* const message )
{
- strcpy( msg, message );
+ const size_t s = sizeof(msg)/sizeof(msg[0]) - 1;
+ strncpy( msg, message, s );
+ msg[s] = '\0';
}
~Exception() {};
@@ -606,7 +610,7 @@ namespace pfs
*
* @return text description of the cause for the exception
*/
- const char* getMessage()
+ const char* getMessage() const throw()
{
return msg;
}