mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
Corrected an issue causing MASKHINTS values to fail to be written
back to the file, instead resulting in a property key only and no value; this in turn produces an error when read back in. Another cycle of reading and writing causes the property to disappear altogether. Also: Corrected another related error that claims to have truncated the mask hints when in fact everything was working normally.
This commit is contained in:
+3
-4
@@ -2681,14 +2681,13 @@ CmdDoProperty(
|
||||
}
|
||||
}
|
||||
if (proplen > 0)
|
||||
{
|
||||
proprec = (PropertyRecord *)mallocMagic(
|
||||
sizeof(PropertyRecord) +
|
||||
(proplen - 2) * sizeof(int));
|
||||
proprec->prop_type = proptype;
|
||||
proprec->prop_len = proplen;
|
||||
}
|
||||
}
|
||||
proprec->prop_type = proptype;
|
||||
proprec->prop_len = proplen;
|
||||
|
||||
/* Second pass */
|
||||
value = cmd->tx_argv[argstart + 1];
|
||||
for (proplen = 0; proplen < proprec->prop_len; proplen++)
|
||||
|
||||
Reference in New Issue
Block a user