"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/wayland-util.c" between
wayland-1.17.0.tar.xz and wayland-1.18.0.tar.xz

About: Wayland is a computer display server protocol for a compositor to talk to its clients and a library for Linux implementing that protocol.

wayland-util.c  (wayland-1.17.0.tar.xz):wayland-util.c  (wayland-1.18.0.tar.xz)
skipping to change at line 134 skipping to change at line 134
data = realloc(array->data, alloc); data = realloc(array->data, alloc);
else else
data = malloc(alloc); data = malloc(alloc);
if (data == NULL) if (data == NULL)
return NULL; return NULL;
array->data = data; array->data = data;
array->alloc = alloc; array->alloc = alloc;
} }
p = array->data + array->size; p = (char *)array->data + array->size;
array->size += size; array->size += size;
return p; return p;
} }
WL_EXPORT int WL_EXPORT int
wl_array_copy(struct wl_array *array, struct wl_array *source) wl_array_copy(struct wl_array *array, struct wl_array *source)
{ {
if (array->size < source->size) { if (array->size < source->size) {
if (!wl_array_add(array, source->size - array->size)) if (!wl_array_add(array, source->size - array->size))
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)