Re: Elusive replication bug in 2.3.13

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 14, 2009 at 07:49:40AM +0100, Simon Matter wrote:
> > http://github.com/brong/cyrus-imapd/commit/1de9d758aeb360714236388c4e1689db0522c21e
> 
> Maybe it's just the lack of caffeine in the early morning, but, isn't
> there a way to simply _download_ a single diff from github.com?
> Thanks for any insights.

Man, I see your point.  They don't seem to have a "get this as a plain
diff file".  How rude.

I've attached it.  Pretty easy within git.

Bron ( still enjoying all the other stuff github gives you! )
diff --git a/lib/cyrusdb_quotalegacy.c b/lib/cyrusdb_quotalegacy.c
index fbe104e..6067c18 100644
--- a/lib/cyrusdb_quotalegacy.c
+++ b/lib/cyrusdb_quotalegacy.c
@@ -529,7 +529,7 @@ static void scan_qr_dir(char *quota_path, char *prefix, struct qr_path *pathbuf)
 		if (!strncmp(next->d_name, prefix, strlen(prefix))) {
 		    if (pathbuf->count == pathbuf->alloc) {
 			pathbuf->alloc += PATH_ALLOC;
-			pathbuf->path = xrealloc(pathbuf->path, pathbuf->alloc);
+			pathbuf->path = xrealloc(pathbuf->path, pathbuf->alloc * sizeof(char *));
 		    }
 		    pathbuf->path[pathbuf->count] = xmalloc(MAX_QUOTA_PATH+1);
 		    sprintf(pathbuf->path[pathbuf->count++],
@@ -551,7 +551,7 @@ static void scan_qr_dir(char *quota_path, char *prefix, struct qr_path *pathbuf)
 	if (!stat(quota_path, &buf)) {
 	    if (pathbuf->count == pathbuf->alloc) {
 		pathbuf->alloc += PATH_ALLOC;
-		pathbuf->path = xrealloc(pathbuf->path, pathbuf->alloc);
+		pathbuf->path = xrealloc(pathbuf->path, pathbuf->alloc * sizeof(char *));
 	    }
 	    pathbuf->path[pathbuf->count] = xmalloc(MAX_QUOTA_PATH+1);
 	    sprintf(pathbuf->path[pathbuf->count++],
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux