mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 17:39:28 +02:00
Corrected an error in writing out .mag files with property values
that are longer than the formerly-fixed array size 256. This conflicted with the recent addition of holding path data in properties, where the path coordinates can be significantly longer than the fixed array size. Same change as made to magic version 8.1.
This commit is contained in:
+3
-1
@@ -2455,10 +2455,12 @@ dbWritePropFunc(key, value, cdata)
|
||||
ClientData cdata;
|
||||
{
|
||||
FILE *f = (FILE *)cdata;
|
||||
char lstring[256];
|
||||
char *lstring;
|
||||
|
||||
lstring = (char *)mallocMagic(10 + strlen((char *)value) + strlen(key));
|
||||
sprintf(lstring, "string %s %s\n", key, (char *)value);
|
||||
FPRINTR(f, lstring);
|
||||
freeMagic(lstring);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user