projects
/
geeqie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace g_memdup with safer g_memdup2
[geeqie.git]
/
src
/
exiv2.cc
diff --git
a/src/exiv2.cc
b/src/exiv2.cc
index
305061b
..
a2c16c4
100644
(file)
--- a/
src/exiv2.cc
+++ b/
src/exiv2.cc
@@
-267,7
+267,11
@@
public:
if (cp_data_)
{
if (data_len) *data_len = cp_length_;
+#if GLIB_CHECK_VERSION(2,68,0)
+ return (unsigned char *) g_memdup2(cp_data_, cp_length_);
+#else
return (unsigned char *) g_memdup(cp_data_, cp_length_);
+#endif
}
return NULL;
}