You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use strncpy_s(buf.data(), buf.size(), input, strlen(input)); (or at least mention this).
In this instance, since you want to try to copy the whole input, it's simpler to call strcpy_s(buf.data(), buf.size(), input);