]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Assign result of CPName_GetComponent to a signed variable.
authorVMware, Inc <>
Tue, 17 Nov 2009 21:19:57 +0000 (13:19 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 17 Nov 2009 21:19:57 +0000 (13:19 -0800)
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 <mvanzin@vmware.com>
open-vm-tools/vmware-user/copyPaste.c
open-vm-tools/vmware-user/dnd.c

index 9065ac8a52734e31b8241e123594b8d26134ca1c..6a9343c75eccfe8e85cf5134348c4995a8f89ab8 100644 (file)
@@ -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;
index bc91489633564c4e8aa3fbf4138e684a54a82342..5a4fa05650864cae5906fb8c2e9fa2dcab18a9ab 100644 (file)
@@ -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;