summaryrefslogtreecommitdiff
path: root/sys/netatm/uni/unisig_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netatm/uni/unisig_util.c')
-rw-r--r--sys/netatm/uni/unisig_util.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/netatm/uni/unisig_util.c b/sys/netatm/uni/unisig_util.c
index a3a2ab2ba3cbf..d7a64f6b17e5d 100644
--- a/sys/netatm/uni/unisig_util.c
+++ b/sys/netatm/uni/unisig_util.c
@@ -23,7 +23,7 @@
* Copies of this Software may be made, however, the above copyright
* notice must be reproduced on all copies.
*
- * @(#) $Id: unisig_util.c,v 1.3 1998/10/31 20:07:01 phk Exp $
+ * @(#) $Id: unisig_util.c,v 1.1 1998/09/15 08:23:13 phk Exp $
*
*/
@@ -35,16 +35,16 @@
*
*/
+#ifndef lint
+static char *RCSid = "@(#) $Id: unisig_util.c,v 1.1 1998/09/15 08:23:13 phk Exp $";
+#endif
+
#include <netatm/kern_include.h>
#include <netatm/uni/unisig.h>
#include <netatm/uni/unisig_var.h>
#include <netatm/uni/unisig_msg.h>
-#ifndef lint
-__RCSID("@(#) $Id: unisig_util.c,v 1.3 1998/10/31 20:07:01 phk Exp $");
-#endif
-
/*
* Free a UNISIG signalling message
@@ -303,8 +303,7 @@ unisig_addr_print(p)
* two-digit hex representation of the
* NSAP byte in the output buffer
*/
- snprintf(t_buff, sizeof(t_buff),
- "%x", *cp + 512);
+ sprintf(t_buff, "%x", *cp + 512);
strcpy(op, &t_buff[strlen(t_buff)-2]);
op++; op++;
cp++;
@@ -326,8 +325,7 @@ unisig_addr_print(p)
* Print the IA5 characters of the E.164 address
*/
for(i=0; i<p->address_length; i++) {
- snprintf(strbuff + strlen(strbuff),
- sizeof(strbuff) - strlen(strbuff), "%c",
+ sprintf(&strbuff[strlen(strbuff)], "%c",
((Atm_addr_e164 *)p->address)->aae_addr[i]);
}
break;
@@ -348,7 +346,7 @@ unisig_addr_print(p)
/*
* Print the address as two words xxxxx.yyyyyyyy
*/
- snprintf(strbuff, sizeof(strbuff), "%x.%x", u1.w, u2.w);
+ sprintf(strbuff, "%x.%x", u1.w, u2.w);
break;
case T_ATM_ABSENT: