_get_object_in_relation(node, ATSPI_RELATION_FLOWS_FROM));
if (ret >= SAFE_BUFFER_SIZE)
- fprintf(stderr, "\n_get_info: generated string is too long. Buffer overflow\n");
+ fprintf(stderr, "\n%s, %s %s: generated string is too long. Buffer overflow\n", __FILE__, __FUNCTION__, __LINE__);
free(node_name);
free(node_role_name);
bool app_name_matched = false;
for (int i = 0; i < count; i++) {
AtspiAccessible *child = atspi_accessible_get_child_at_index(desktop, i, NULL);
- if (child == NULL)
- break;
+ if (child == NULL) {
+ fprintf(stderr, "\n%s, %s %s: Null child occured. Results may be misleading.\n", __FILE__, __FUNCTION__, __LINE__);
+ continue;
+ }
char *name = atspi_accessible_get_name(child, NULL);