* some quotes here can't hurt.
authorWilfried Göesgens <willi@citadel.org>
Thu, 16 Aug 2007 21:38:58 +0000 (21:38 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 16 Aug 2007 21:38:58 +0000 (21:38 +0000)
citadel/file_ops.c

index d32e9f829064cb881e7d713bf24c2f974222fb27..30c65067b8df26a23e33dcdd0c938afdb2ddbe07 100644 (file)
@@ -211,7 +211,7 @@ void cmd_movf(char *cmdbuf)
 
        /* this is a crude method of copying the file description */
        snprintf(buf, sizeof buf,
-                "cat ./files/%s/filedir |grep %s >>./files/%s/filedir",
+                "cat ./files/%s/filedir |grep \"%s\" >>./files/%s/filedir",
                 CC->room.QRdirname, filename, qrbuf.QRdirname);
        system(buf);
        cprintf("%d File '%s' has been moved.\n", CIT_OK, filename);