diff --git a/src/main.c b/src/main.c index e8109f4a..d636b2fe 100644 --- a/src/main.c +++ b/src/main.c @@ -1095,7 +1095,7 @@ static BOOL CALLBACK InputDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP) if (ctrlId == IDOK) { /* Add user */ GetWindowText( - GetDlgItem(hDlg, ID_INPUT_LINE), inBuf->buffer, inBuf->buflen); + GetDlgItem(hDlg, ID_INPUT_LINE), inBuf->buffer, (int)inBuf->buflen); if (strlen(inBuf->buffer) > 0) { EndDialog(hDlg, IDOK); }