Fix path lengths.
[nssm.git] / gui.cpp
diff --git a/gui.cpp b/gui.cpp
index c143162..b1174d1 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -67,7 +67,7 @@ int install(HWND window) {
 \r
   /* Check parameters in the window */\r
   char name[STRING_SIZE];\r
-  char exe[MAX_PATH];\r
+  char exe[EXE_LENGTH];\r
   char flags[STRING_SIZE];\r
 \r
   /* Get service name */\r