]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/radius/util.c
Merge pull request #362 from enaess/ppp-crypto
[ppp.git] / pppd / plugins / radius / util.c
index 740131e8377c51f326b1f465ca94a12526563712..4065724926ae44a1a1433a2b0ef25e01e9ec35bc 100644 (file)
@@ -75,10 +75,10 @@ rc_mksid (void)
 {
   static char buf[32];
   static unsigned short int cnt = 0;
-  slprintf(buf, sizeof(buf), "%08lX%04X%02hX",
+  snprintf(buf, sizeof(buf), "%08lX%04X%02hX",
           (unsigned long int) time (NULL),
           (unsigned int) getpid (),
-          cnt & 0xFF);
+          (unsigned short) (cnt & 0xFF));
   cnt++;
   return buf;
 }