aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-23 18:22:19 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-23 18:22:19 +0000
commit67c64a0c521e667be2b49aedb185027db42ec74b (patch)
treed1269e3a17c5bb029d0295ae9d5472296a6230f8
parent8e523e0744a2cc06882f6554b37e695040a076c5 (diff)
From Greg Morris: properly initialize request_value->info_string using
"strcpy()", not "strcat()". svn path=/trunk/; revision=8518
-rw-r--r--packet-ncp2222.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-ncp2222.inc b/packet-ncp2222.inc
index b5d7450739..3b530308d0 100644
--- a/packet-ncp2222.inc
+++ b/packet-ncp2222.inc
@@ -11,7 +11,7 @@
* Portions Copyright (c) Gilbert Ramirez 2000-2002
* Portions Copyright (c) Novell, Inc. 2000-2003
*
- * $Id: packet-ncp2222.inc,v 1.60 2003/09/20 04:25:11 guy Exp $
+ * $Id: packet-ncp2222.inc,v 1.61 2003/09/23 18:22:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -4590,26 +4590,26 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
if (info_type == 1) { /* Is this bytes? */
byte_string = bytes_to_str(fvalue_get(finfo->value), fvalue_length(finfo->value));
sprintf(col_str, ncp_rec->req_info_str->first_string, byte_string);
- strcat(request_value->info_string, col_str);
+ strcpy(request_value->info_string, col_str);
}
else
{
if (info_type == 2) { /* Is this a String? */
uni_to_string(fvalue_get(finfo->value), fvalue_length(finfo->value), non_uni_string);
sprintf(col_str, ncp_rec->req_info_str->first_string, non_uni_string);
- strcat(request_value->info_string, col_str);
+ strcpy(request_value->info_string, col_str);
}
else
{
sprintf(col_str, ncp_rec->req_info_str->first_string, fvalue_get(finfo->value));
- strcat(request_value->info_string, col_str);
+ strcpy(request_value->info_string, col_str);
}
}
}
else
{
sprintf(col_str, ncp_rec->req_info_str->first_string, fvalue_get_integer(finfo->value));
- strcat(request_value->info_string, col_str);
+ strcpy(request_value->info_string, col_str);
}
}
if (len > 1) {