diff options
| author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2014-06-20 17:17:54 +0000 |
|---|---|---|
| committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2014-06-20 17:17:54 +0000 |
| commit | ce3d606a5b5d25c1a7fa7e2f2ddb75a284d17941 (patch) | |
| tree | da56af4d8dbe76ea4db95f5ac25d17feb92aaabd /graphics/pfstools/files/patch-src-pfs-pfs.h | |
| parent | - Update to 1.0.7 (diff) | |
- Update from 1.6.4 to 1.8.5 [1]
- Use options helpers
PR: ports/191179
Submitted by: ii@any.com.ru [1]
Notes
Notes:
svn path=/head/; revision=358615
Diffstat (limited to '')
| -rw-r--r-- | graphics/pfstools/files/patch-src-pfs-pfs.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/graphics/pfstools/files/patch-src-pfs-pfs.h b/graphics/pfstools/files/patch-src-pfs-pfs.h new file mode 100644 index 000000000000..72276e7d04fc --- /dev/null +++ b/graphics/pfstools/files/patch-src-pfs-pfs.h @@ -0,0 +1,45 @@ +--- src/pfs/pfs.h.orig 2006-03-01 17:21:16.000000000 +0000 ++++ src/pfs/pfs.h 2014-02-20 19:04:01.566588122 +0000 +@@ -115,6 +115,7 @@ + class TagIterator + { + public: ++ virtual ~TagIterator() {}; + /** + * Get next item on the list. + * +@@ -135,6 +136,7 @@ + class TagContainer + { + public: ++ virtual ~TagContainer() {}; + /** + * Get a string tag of the name tagName from the TagContainer. + * @param tagName name of the tag to retrieve +@@ -181,6 +183,7 @@ + */ + class Channel : public Array2D { + public: ++ virtual ~Channel() {}; + /** + * Gets width of the channel (in pixels). + * This is a synonym for Array2D::getCols(). +@@ -226,6 +229,7 @@ + class ChannelIterator + { + public: ++ virtual ~ChannelIterator() {}; + /** + * Get next item on the list. + */ +@@ -580,7 +584,9 @@ + */ + 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() {}; |
