Cast away a compile warning: "conversion from '__int64' to 'gulong', possible loss...
authorBill Meier <wmeier@newsguy.com>
Sun, 29 Jul 2012 19:00:46 +0000 (19:00 -0000)
committerBill Meier <wmeier@newsguy.com>
Sun, 29 Jul 2012 19:00:46 +0000 (19:00 -0000)
svn path=/trunk/; revision=44112

epan/dissectors/packet-nfs.c

index 6b4912744a684914e5847c1d8523c49125dae3d7..8f83b315418f3755292c557890ab8755e13aeb4c 100644 (file)
@@ -1106,7 +1106,7 @@ nfs_full_name_snoop(nfs_name_snoop_t *nns, int *len, char **name, char **pos)
                nfs_full_name_snoop(parent_nns, len, name, pos);
                if(*name){
                        /* make sure components are '/' separated */
-                       *pos += g_snprintf(*pos, (*len+1) - (*pos-*name), "%s%s", ((*pos)[-1]!='/')?"/":"", nns->name);
+                    *pos += g_snprintf(*pos, (*len+1) - (gulong)(*pos-*name)), "%s%s", ((*pos)[-1]!='/')?"/":"", nns->name);
                        g_assert((*pos-*name) <= *len);
                }
                return;