diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index b9f8bf16fda6e72f893173179c3f5ee7df1c7371..2dfe6c49a31affb8823b7decc69abeb8b9ab907f 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -3938,7 +3938,7 @@ int sbbs_t::mv(const char* path, const char* dest, bool copy)
 {
 	char src[MAX_PATH + 1];
 
-    if(!stricmp(src,dest))	 /* source and destination are the same! */
+    if(!stricmp(path, dest))	 /* source and destination are the same! */
         return(0);
 
 	SAFECOPY(src, path);