| commit | ac52f2660ec717b6b25c313f20e47a622d3357d8 | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Thu Oct 24 14:45:21 2013 +0200 |
| committer | Petr Machata <pmachata@redhat.com> | Thu Oct 24 14:45:21 2013 +0200 |
| tree | 162e4550d5d4f53aed30094b45105fbe8e64296b | |
| parent | 88070a85ddaf5d2f4c6e89b5fbb5db5124049b4b [diff] [blame] |
When looking for longest matching soname substring, we don't copy enough
diff --git a/output.c b/output.c index 6597e89..edf4522 100644 --- a/output.c +++ b/output.c
@@ -200,7 +200,7 @@ if (lib->protolib == NULL) { size_t sz = strlen(lib->soname); char buf[sz + 1]; - memcpy(buf, lib->soname, sz); + memcpy(buf, lib->soname, sz + 1); do { if (protolib_cache_maybe_load(&g_protocache, buf, 0,