Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2013-10-30 21:48:00 +0000 (Wed, 30 Oct 2013)
modified the file relocation utility string cat function to round length up to a 8-byte multiple to prevent extraneous mem checker warnings upon read
--- trunk/FreeOrion/util/binreloc.c 2013-10-29 21:11:16 UTC (rev 6491)
+++ trunk/FreeOrion/util/binreloc.c 2013-10-30 21:48:00 UTC (rev 6492)
@@ -671,7 +671,9 @@
len1 = strlen (str1);
len2 = strlen (str2);
- result = (char *) malloc (len1 + len2 + 1);
+ //rounds length up to a 8-byte multiple to prevent extraneous mem checker warnings upon data read
+ //rounding up to 4 byte multiple might be sufficient, but went with 8 to be safe.
+ result = (char *) malloc ((len1 + len2 + 1 + 7) & ~ 0x07);
memcpy (result, str1, len1);
memcpy (result + len1, str2, len2);
result[len1 + len2] = '\0';
Sign up for the SourceForge newsletter: