]> jfr.im git - solanum.git/commitdiff
openssl: use snprintf(3) instead of rb_snprintf()
authorAaron Jones <redacted>
Wed, 1 Jun 2016 18:04:23 +0000 (18:04 +0000)
committerAaron Jones <redacted>
Wed, 1 Jun 2016 18:04:23 +0000 (18:04 +0000)
librb/src/openssl.c

index 9c2f437c8d65ba616d1bacf172b341fc69854f79..320de14602eb0f6ccb99a180c8f47af2444f58b8 100644 (file)
@@ -842,15 +842,15 @@ rb_get_ssl_info(char *buf, size_t len)
 {
 #ifdef LRB_SSL_FULL_VERSION_INFO
        if (LRB_SSL_VNUM_RUNTIME == LRB_SSL_VNUM_COMPILETIME)
-               rb_snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
-                           LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME);
+               snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
+                        LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME);
        else
-               rb_snprintf(buf, len, "OpenSSL: compiled (0x%lx, %s), library (0x%lx, %s)",
-                           LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME,
-                           LRB_SSL_VNUM_RUNTIME, LRB_SSL_VTEXT_RUNTIME);
+               snprintf(buf, len, "OpenSSL: compiled (0x%lx, %s), library (0x%lx, %s)",
+                        LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME,
+                        LRB_SSL_VNUM_RUNTIME, LRB_SSL_VTEXT_RUNTIME);
 #else
-       rb_snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
-                   LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_RUNTIME);
+       snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
+                LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_RUNTIME);
 #endif
 }