aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet-smb-common.c')
-rw-r--r--packet-smb-common.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/packet-smb-common.c b/packet-smb-common.c
index d76cfbfdc7..52ea9f9c82 100644
--- a/packet-smb-common.c
+++ b/packet-smb-common.c
@@ -2,24 +2,24 @@
* Common routines for smb packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-smb-common.c,v 1.13 2002/08/10 21:15:37 guy Exp $
+ * $Id: packet-smb-common.c,v 1.14 2002/08/28 21:00:31 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* Copied from packet-pop.c
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -66,9 +66,9 @@ int display_ms_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index)
str = g_malloc(len+1);
tvb_memcpy(tvb, (guint8 *)str, offset, len);
str[len] = '\0';
-
+
proto_tree_add_string(tree, hf_index, tvb, offset, len+1, str);
-
+
/*
* XXX - "proto_tree_add_string()" mallocates a copy; it'd
* be nice not to have it copy the string, but just to
@@ -119,11 +119,11 @@ int display_unicode_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_i
charoffset += 2;
}
*p = '\0';
-
+
proto_tree_add_string(tree, hf_index, tvb, offset, len, str);
g_free(str);
-
+
return offset+len;
}
@@ -153,9 +153,9 @@ unicode_to_str(tvbuff_t *tvb, int offset, int *us_lenp, gboolean exactlen,
if (cur == &str[0][0]) {
cur = &str[1][0];
- } else if (cur == &str[1][0]) {
+ } else if (cur == &str[1][0]) {
cur = &str[2][0];
- } else {
+ } else {
cur = &str[0][0];
}
p = cur;
@@ -249,9 +249,9 @@ get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp,
*/
if (cur == &str[0][0]) {
cur = &str[1][0];
- } else if (cur == &str[1][0]) {
+ } else if (cur == &str[1][0]) {
cur = &str[2][0];
- } else {
+ } else {
cur = &str[0][0];
}
copylen = *len;