projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2012-09-19 [colin] 3.8.1cvs64
[claws.git]
/
src
/
mainwindow.c
diff --git
a/src/mainwindow.c
b/src/mainwindow.c
index b9de4258309a3853f149b922bc5edcffcd648386..fae2b4c1fea8a165c9e3cc93614954aa7ab150d5 100644
(file)
--- a/
src/mainwindow.c
+++ b/
src/mainwindow.c
@@
-3616,7
+3616,9
@@
static void get_url_part (const gchar **buffer, gchar *url_decoded, gint maxlen)
buf++;
if (!strncmp(buf, "mailto:", strlen("mailto:")))
with_plus = FALSE;
buf++;
if (!strncmp(buf, "mailto:", strlen("mailto:")))
with_plus = FALSE;
- for (i = 0; *buf != '>' && *buf != 0x00 && i<maxlen; tmp[i++] = *(buf++));
+ for (i = 0;
+ *buf != '>' && *buf != 0x00 && i<maxlen && i < sizeof(tmp) - 1;
+ tmp[i++] = *(buf++));
buf++;
}
else {
buf++;
}
else {