Searched refs:buffer_temp (Results 1 – 1 of 1) sorted by relevance
130 char *buffer_temp; in read_from_partition() local132 buffer_temp = malloc(512 * blkcnt); in read_from_partition()133 if (!buffer_temp) { in read_from_partition()138 blkcnt, buffer_temp); in read_from_partition()139 memcpy(buffer, buffer_temp + (offset % 512), num_bytes); in read_from_partition()141 free(buffer_temp); in read_from_partition()154 char *buffer_temp; in write_to_partition() local159 buffer_temp = malloc(512 * blkcnt); in write_to_partition()160 if (!buffer_temp) { in write_to_partition()164 memset(buffer_temp, 0, 512 * blkcnt); in write_to_partition()[all …]