diff --git a/src/smax-lazy.c b/src/smax-lazy.c index 920ccf5..73714c2 100644 --- a/src/smax-lazy.c +++ b/src/smax-lazy.c @@ -60,7 +60,6 @@ static LazyMonitor *GetMonitorAsync(const char *table, const char *key); static LazyMonitor *GetSpecificMonitorAsync(const char *table, const char *key); static void ProcessLazyUpdates(const char *pattern, const char *channel, const char *msg, long length); - /** * Decrements the number of concurrent user calls that currently need access to the specific * lazy monitor data. If the monitor has no users left and is not currently monitored diff --git a/src/smax-util.c b/src/smax-util.c index aa1729f..12d6fd3 100644 --- a/src/smax-util.c +++ b/src/smax-util.c @@ -317,7 +317,6 @@ unsigned char smaxGetHashLookupIndex(const char *table, int lTab, const char *ke } /// \endcond - /** * \cond PROTECTED * @@ -1136,13 +1135,13 @@ int smaxUnpackStrings(const char *data, int len, int count, char **dst) { for(l=0; from[l] && offset + l < len; l++) if(from[l] == '\r') break; - dst[i] = (char *) malloc(l+1); + dst[i] = (char *) malloc(l + 1); if(!dst[i]) return x_error(X_INCOMPLETE, errno, fn, "malloc() error (%d bytes)", (l+1)); if(l) memcpy(dst[i], from, l); dst[i][l] = '\0'; // termination... - offset += l; + offset += l + 1; } // Pad remaining elements with empty strings...