Revision 9eab8f0b

View differences:

som/TopologyManager/tman.c
101 101
	int i;
102 102

  
103 103
        mdata = get_metadata(local_cache, &metadata_size);
104
	for (i=0; nodeid(local_cache, i) && (i < n); i++)
104
	for (i=0; nodeid(local_cache, i) && (i < n); i++) {
105 105
			peers[i] = nodeid(local_cache,i);
106 106
			if (metadata_size)
107
				memcpy((uint8_t *)metadata + i * metadata_size, mdata + i *metadata_size, metadata_size);
108

  
107
				memcpy((uint8_t *)metadata + i * metadata_size, mdata + i * metadata_size, metadata_size);
108
	}
109 109
	if (i != n) {
110 110
		active = 0;
111 111
        }

Also available in: Unified diff