mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
7bf5f9ef0c
Add some bug-fixes noticed by the compiler.
12 lines
352 B
C
12 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;
|