[Spice-devel] [vdagent-win PATCH V3 01/11] Fix compiler warning (missing backslash in FileXfer::handle_start)

Uri Lublin uril at redhat.com
Tue Dec 30 08:20:47 PST 2014


Visual Studio complains:
vdagent\file_xfer.cpp(85) : warning C4129: '%' : unrecognized character escape sequence

Replace "%s\%s" with "%s\\%s"
---
 vdagent/file_xfer.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp
index 208303f..f8cd07f 100644
--- a/vdagent/file_xfer.cpp
+++ b/vdagent/file_xfer.cpp
@@ -76,7 +76,7 @@ void FileXfer::handle_start(VDAgentFileXferStartMessage* start,
     }
 
     if (strlen(file_path) + strlen(file_name) + 1 >= MAX_PATH) {
-        vd_printf("error: file too long %s\%s", file_path, file_name);
+        vd_printf("error: file too long %s\\%s", file_path, file_name);
         return;
     }
 
-- 
1.7.1



More information about the Spice-devel mailing list