fix embedded_data on freebsd

- remove hardcoded path in embedded_data
Esse commit está contido em:
Vanilla Hsu
2013-07-25 12:55:31 -07:00
commit de Sara Golemon
commit 2592a77248
+1 -1
Ver Arquivo
@@ -68,7 +68,7 @@ bool get_embedded_data(const char *section, embedded_data* desc) {
if (!strcmp(section, name)) {
GElf_Shdr ghdr;
if (gelf_getshdr(scn, &ghdr) != &ghdr) return false;
desc->m_filename = "/proc/self/exe";
desc->m_filename = current_executable_path();
desc->m_start = ghdr.sh_offset;
desc->m_len = ghdr.sh_size;
return true;