Changeset: 447c63f4ab82 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=447c63f4ab82
Modified Files:
clients/mapiclient/tomograph.c
Branch: Feb2013
Log Message:
Partial backout of changeset 0962297130a1.
What was being copied was not a single struct, but a whole array of structs.
diffs (12 lines):
diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -1145,7 +1145,7 @@ static void showcolormap(char *filename,
* "*.*" stays first (colors[0]) */
_clrs_ = (Color*) malloc (sizeof(colors));
if (_clrs_) {
- *_clrs_ = *colors;
+ memcpy (_clrs_, colors, sizeof(colors));
qsort (_clrs_, NUM_COLORS, sizeof(Color), cmp_clr);
clrs = _clrs_;
}
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list