projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a385edd
)
Ridiculous crash on sending emails.
author
Carl Hetherington
<cth@carlh.net>
Tue, 1 Dec 2015 09:28:32 +0000
(09:28 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 1 Dec 2015 09:28:32 +0000
(09:28 +0000)
src/lib/emailer.cc
patch
|
blob
|
history
diff --git
a/src/lib/emailer.cc
b/src/lib/emailer.cc
index b605d067d9449cace592a40d62027884e2ed100d..4081c61153cded88fc3f8d505f84443dd0e49d1e 100644
(file)
--- a/
src/lib/emailer.cc
+++ b/
src/lib/emailer.cc
@@
-84,7
+84,7
@@
size_t
Emailer::get_data (void* ptr, size_t size, size_t nmemb)
{
size_t const t = min (_email.length() - _offset, size * nmemb);
- memcpy (ptr, _email.substr
(_offset, size * nmemb).c_str(), size * nmemb
);
+ memcpy (ptr, _email.substr
(_offset, t).c_str(), t
);
_offset += t;
return t;
}