de0521e608
- added REDIS option, pmacct daemons can now connect to a Redis cache - fix SQLDOC pkg-plist substitute - fixed SQL headers/libs detection PR: 243455 Submitted by: Juraj Lutter <juraj@lutter.sk> Relnotes: https://github.com/pmacct/pmacct/releases/tag/v1.7.5
12 lines
319 B
C
12 lines
319 B
C
--- src/sql_common.h.orig 2020-02-22 20:28:47 UTC
|
|
+++ src/sql_common.h
|
|
@@ -64,7 +64,7 @@
|
|
#define SQL_TABLE_VERSION_BGP 1000
|
|
|
|
/* macros */
|
|
-#define SPACELEFT(x) (sizeof(x)-strlen(x))
|
|
+#define SPACELEFT(x) (sizeof(x)-strlen(x)-1)
|
|
#define SPACELEFT_LEN(x,y) (sizeof(x)-y)
|
|
#define SPACELEFT_PTR(x,y) (y-strlen(x))
|
|
|