[Spice-devel] [vdagent-win V2 5/6] Fix compiler warning (missing backslash)
Uri Lublin
uril at redhat.com
Mon Mar 24 10:02:42 PDT 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 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp
index 3bed1b1..c258926 100644
--- a/vdagent/file_xfer.cpp
+++ b/vdagent/file_xfer.cpp
@@ -84,7 +84,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.8.5.3
More information about the Spice-devel
mailing list