mirror of
https://github.com/byteworksinc/DumpObj.git
synced 2024-10-31 23:05:20 +00:00
Merge pull request #9 from ksherlock/patch_12
fix for fixed-size labels
This commit is contained in:
commit
bf2446df16
@ -443,9 +443,16 @@ disp = nam_disp-sizeof(header); /* skip any extra stuff */
|
||||
if (disp)
|
||||
for (i = 0; i < disp; ++i)
|
||||
fgetc(f);
|
||||
|
||||
if (version == 0)
|
||||
loadname[0] = 0;
|
||||
else {
|
||||
for (i = 0; i < 10; ++i) /* read the load segment name */
|
||||
loadname[i] = fgetc(f);
|
||||
loadname[10] = (char) 0;
|
||||
}
|
||||
len = lablen;
|
||||
if (!len)
|
||||
len = fgetc(f); /* read the code segment name */
|
||||
for (i = 0; i < len; ++i)
|
||||
segname[i] = fgetc(f);
|
||||
|
Loading…
Reference in New Issue
Block a user