diff options
Diffstat (limited to 'misc/pascal/libpoff/pfrrawreloc.c')
-rw-r--r-- | misc/pascal/libpoff/pfrrawreloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/pascal/libpoff/pfrrawreloc.c b/misc/pascal/libpoff/pfrrawreloc.c index 143830d4e..2a3e6d7d5 100644 --- a/misc/pascal/libpoff/pfrrawreloc.c +++ b/misc/pascal/libpoff/pfrrawreloc.c @@ -95,7 +95,7 @@ sint32 poffGetRawRelocation(poffHandle_t handle, poffRelocation_t *lineno) {
/* Copy the raw line number information to the user */
- *lineno = *(poffRelocation_t*)&poffInfo->relocTable[relocIndex];
+ memcpy(lineno, &poffInfo->relocTable[relocIndex], sizeof(poffRelocation_t));
/* Set up for the next read */
|