projects
/
ecparse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7c2672
)
null-terminate correct string
author
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sat, 5 Jul 2008 20:59:01 +0000
(22:59 +0200)
committer
David ‘Bombe’ Roden
<bombe@pterodactylus.net>
Sat, 5 Jul 2008 20:59:01 +0000
(22:59 +0200)
ED2KLink.cpp
patch
|
blob
|
history
diff --git
a/ED2KLink.cpp
b/ED2KLink.cpp
index
f8e7373
..
7f1ec66
100644
(file)
--- a/
ED2KLink.cpp
+++ b/
ED2KLink.cpp
@@
-71,7
+71,7
@@
ED2KLink* ED2KLink::parseED2KLink(const char* buffer) {
stringLength = (char*) pipeIndex - tempBuffer;
filename = (char*) malloc(stringLength + 1);
memcpy(filename, tempBuffer, stringLength);
-
sizeString
[stringLength] = '\0';
+
filename
[stringLength] = '\0';
tempBuffer = pipeIndex + 1;
GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] parsed filename: “%s”.\n", __FILE__, __LINE__, filename);