projects
/
debian
/
efibootmgr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.5.3
[debian/efibootmgr]
/
src
/
lib
/
gpt.c
diff --git
a/src/lib/gpt.c
b/src/lib/gpt.c
index 85aefedd6711f7534f2a59dbd9d519673c7f0461..02985f44c5509f78f92743ac69b700c9d3cf048e 100644
(file)
--- a/
src/lib/gpt.c
+++ b/
src/lib/gpt.c
@@
-22,8
+22,6
@@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define _FILE_OFFSET_BITS 64
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@
-236,6
+234,7
@@
read_lba(int fd, uint64_t lba, void *buffer, size_t bytes)
lseek(fd, offset, SEEK_SET);
bytesread = read(fd, aligned, bytes);
memcpy(buffer, aligned, bytesread);
lseek(fd, offset, SEEK_SET);
bytesread = read(fd, aligned, bytes);
memcpy(buffer, aligned, bytesread);
+ free(unaligned);
/* Kludge. This is necessary to read/write the last
block of an odd-sized disk, until Linux 2.5.x kernel fixes.
/* Kludge. This is necessary to read/write the last
block of an odd-sized disk, until Linux 2.5.x kernel fixes.