Removed some legacy stuff.
[nssm.git] / gui.cpp
diff --git a/gui.cpp b/gui.cpp
index b1174d1..83f2165 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -6,7 +6,7 @@ int nssm_gui(int resource, char *name) {
   /* Create window */\r
   HWND dlg = CreateDialog(0, MAKEINTRESOURCE(resource), 0, install_dlg);\r
   if (! dlg) {\r
-    snprintf(blurb, sizeof(blurb), "CreateDialog() failed with error code %d", GetLastError());\r
+    _snprintf(blurb, sizeof(blurb), "CreateDialog() failed with error code %d", GetLastError());\r
     MessageBox(0, blurb, NSSM, MB_OK);\r
     return 1;\r
   }\r
@@ -133,7 +133,7 @@ int remove(HWND window) {
 \r
   /* Confirm */\r
   char blurb[MAX_PATH];\r
-  if (snprintf(blurb, sizeof(blurb), "Remove the \"%s\" service?", name) < 0) {\r
+  if (_snprintf(blurb, sizeof(blurb), "Remove the \"%s\" service?", name) < 0) {\r
     if (MessageBox(0, "Remove the service?", NSSM, MB_YESNO) != IDYES) return 0;\r
   }\r
   else if (MessageBox(0, blurb, NSSM, MB_YESNO) != IDYES) return 0;\r