diff --git a/windows/winutils.c b/windows/winutils.c index a5fedb8e..2f4c8f59 100644 --- a/windows/winutils.c +++ b/windows/winutils.c @@ -163,7 +163,7 @@ char *GetDlgItemText_alloc(HWND hwnd, int id) size_t size = 0; do { - sgrowarray(ret, size, size); + sgrowarray_nm(ret, size, size); GetDlgItemText(hwnd, id, ret, size); } while (!memchr(ret, '\0', size-1));