cygwin_create_path is supposed to call malloc itself, however, it occasionally returns with null and errno == ENOSPC, if it's provided with a network path, e.g. cygwin_create_path(CCP_POSIX_TO_WIN_W, "/cygdrive/s/.config/mintty") returns null in ~ 3 of 1000 cases, where /cygdrive/s exists but /cygdrive/s/.config does not ------ Thomas