openbsd-ports/lang/lua/patches/patch-src_lvm_c
2006-01-18 11:17:03 +00:00

13 lines
403 B
Plaintext

$OpenBSD: patch-src_lvm_c,v 1.1 2006/01/18 11:17:03 pedro Exp $
--- src/lvm.c.orig Tue Jan 17 13:53:34 2006
+++ src/lvm.c Tue Jan 17 13:56:56 2006
@@ -32,7 +32,7 @@
/* function to convert a lua_Number to a string */
#ifndef lua_number2str
-#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
+#define lua_number2str(s,n) snprintf((s), sizeof((s)), LUA_NUMBER_FMT, (n))
#endif