Skip to content

Commit

Permalink
Merge pull request #2972 from MartinNowak/fix11750
Browse files Browse the repository at this point in the history
incorrect strlen usage
  • Loading branch information
WalterBright committed Dec 25, 2013
2 parents 2a1d69f + 4960899 commit 7f142e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/dwarf.c
Expand Up @@ -731,7 +731,7 @@ int dwarf_line_addfile(const char* filename)

Abuf abuf;
abuf.buf = (const unsigned char*)filename;
abuf.length = strlen(filename)-1;
abuf.length = strlen(filename);

unsigned *pidx = (unsigned *)infoFileName_table->get(&abuf);
if (!*pidx) // if no idx assigned yet
Expand Down

0 comments on commit 7f142e6

Please sign in to comment.