From: VMware, Inc <> Date: Tue, 17 Nov 2009 21:19:57 +0000 (-0800) Subject: Assign result of CPName_GetComponent to a signed variable. X-Git-Tag: 2009.11.16-210370~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fc9c415748bbdece3c16ec7e40d24638946b541;p=thirdparty%2Fopen-vm-tools.git Assign result of CPName_GetComponent to a signed variable. This is a follow up change. CPName_GetComponent returns -1 to report an error thus it can't be assigned to a unsigned variable. In the previous change most of the places where CPName_GetComponent was assigned to a size_t variable were fixed however couple of places were missed. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/vmware-user/copyPaste.c b/open-vm-tools/vmware-user/copyPaste.c index 9065ac8a5..6a9343c75 100644 --- a/open-vm-tools/vmware-user/copyPaste.c +++ b/open-vm-tools/vmware-user/copyPaste.c @@ -498,7 +498,7 @@ CopyPasteSelectionGetCB(GtkWidget *widget, // IN: unused const char *post = NULL; size_t preLen = 0; size_t postLen = 0; - size_t len = 0; + int len = 0; char *text = NULL; size_t textLen = 1; Bool blockAdded = FALSE; diff --git a/open-vm-tools/vmware-user/dnd.c b/open-vm-tools/vmware-user/dnd.c index bc9148963..5a4fa0565 100644 --- a/open-vm-tools/vmware-user/dnd.c +++ b/open-vm-tools/vmware-user/dnd.c @@ -1156,7 +1156,7 @@ DnDGtkDataRequestCB(GtkWidget *widget, // IN const char *post; size_t preLen; size_t postLen; - size_t len; + int len; Bool insertSpace; char *text = NULL; size_t textLen = 1;