1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-15 08:19:13 -04:00
ports/databases/mdbtools/files/patch-backend.c
Mikhail Teterin 7bf5f9ef0c Upgrade to 0.5 (from 0.4). BUILD_DEPEND on gawk to ensure the man-pages are built.
Add some bug-fixes noticed by the compiler.
2003-04-08 20:42:50 +00:00

11 lines
352 B
C

--- src/libmdb/backend.c Tue Dec 10 18:35:25 2002
+++ src/libmdb/backend.c Tue Apr 8 16:19:29 2003
@@ -114,6 +114,5 @@
{
-char buf[100];
+ static char buf[16];
if (col_type > 0x10) {
- // return NULL;
- sprintf(buf,"type %04x", col_type);
+ snprintf(buf, sizeof(buf), "type %04x", col_type);
return buf;