X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=gui.cpp;h=83f216593ece133e8550c70a786027d55e86e0a2;hb=8d855fdbce4ba0b8cfeda551f137434731385c23;hp=b1174d124a17714cfaedb7f288dae6368f5e344e;hpb=f1abcb8f0ad1fb08fe07a496f5d037d0c1d3b478;p=nssm.git diff --git a/gui.cpp b/gui.cpp index b1174d1..83f2165 100644 --- a/gui.cpp +++ b/gui.cpp @@ -6,7 +6,7 @@ int nssm_gui(int resource, char *name) { /* Create window */ HWND dlg = CreateDialog(0, MAKEINTRESOURCE(resource), 0, install_dlg); if (! dlg) { - snprintf(blurb, sizeof(blurb), "CreateDialog() failed with error code %d", GetLastError()); + _snprintf(blurb, sizeof(blurb), "CreateDialog() failed with error code %d", GetLastError()); MessageBox(0, blurb, NSSM, MB_OK); return 1; } @@ -133,7 +133,7 @@ int remove(HWND window) { /* Confirm */ char blurb[MAX_PATH]; - if (snprintf(blurb, sizeof(blurb), "Remove the \"%s\" service?", name) < 0) { + if (_snprintf(blurb, sizeof(blurb), "Remove the \"%s\" service?", name) < 0) { if (MessageBox(0, "Remove the service?", NSSM, MB_YESNO) != IDYES) return 0; } else if (MessageBox(0, blurb, NSSM, MB_YESNO) != IDYES) return 0;