Skip to content
Snippets Groups Projects
Commit 6d77b92c authored by jdh8d's avatar jdh8d
Browse files

doh. forgot null terminator in find strings.

Former-commit-id: a8e23ff674c8df242c8ff03d95f863116aace9b7
parent 1af10f30
No related branches found
No related tags found
No related merge requests found
......@@ -30,9 +30,10 @@ typedef struct elf_info {
void found_string(string s, void* addr)
{
char buff[s.length()];
char buff[s.length()+2];
char *old_p=buff, *p;
memcpy(buff,s.c_str(),s.length());
buff[s.length()]=0;
// look for new lines in the string
// if found, split it up and print out each one as it's own thing.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment