diff --git a/src/sbbs3/xtrn.cpp b/src/sbbs3/xtrn.cpp
index 70e1d4e72b71b582712640c7f3ee9b956473f6d6..ba7f9a62d1db918e803fb188802686b650dc48c5 100644
--- a/src/sbbs3/xtrn.cpp
+++ b/src/sbbs3/xtrn.cpp
@@ -1582,8 +1582,8 @@ int sbbs_t::external(const char* cmdline, int mode, const char* startup_dir)
 			 * to a value we may have made up.
 			 * TODO: We can set stuff from the user term here...
 			 */
-			for (i = 0; i < (sizeof(term.c_cc) / sizeof(term.c_cc[0])); i++)
-				term.c_cc[i] = _POSIX_VDISABLE;
+			for (unsigned noti = 0; noti < (sizeof(term.c_cc) / sizeof(term.c_cc[0])); noti++)
+				term.c_cc[noti] = _POSIX_VDISABLE;
 #ifdef VEOF
 			term.c_cc[VEOF] = CEOF;
 #endif