]> code.citadel.org Git - citadel.git/commitdiff
*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Wed, 18 May 2005 18:48:52 +0000 (18:48 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 18 May 2005 18:48:52 +0000 (18:48 +0000)
citadel/serv_fulltext.c
citadel/serv_fulltext.o

index c6be2cfd3f68321f79572239a8fa7906919d4a54..c3a3806599c1f3e49f9863a1726f9c724626b307 100644 (file)
@@ -301,8 +301,8 @@ void ft_search(int *fts_num_msgs, long **fts_msgs, char *search_string) {
                                if (num_ret_msgs > num_ret_alloc) {
                                        num_ret_alloc += 64;
                                        ret_msgs = realloc(ret_msgs, (num_ret_alloc*sizeof(long)) );
-                                       ret_msgs[num_ret_msgs - 1] = all_msgs[j];
                                }
+                               ret_msgs[num_ret_msgs - 1] = all_msgs[j];
 
                        }
                }
@@ -328,7 +328,8 @@ void cmd_srch(char *argbuf) {
        extract_token(search_string, argbuf, 0, '|', sizeof search_string);
        ft_search(&num_msgs, &msgs, search_string);
 
-       cprintf("%d %d msgs match all search words:\n", LISTING_FOLLOWS, num_msgs);
+       cprintf("%d %d msgs match all search words:\n",
+               LISTING_FOLLOWS, num_msgs);
        if (num_msgs > 0) {
                for (i=0; i<num_msgs; ++i) {
                        cprintf("%ld\n", msgs[i]);
index bba95f0a87c60f83f612202a7ddbb6489a06198b..4824b08d074a71c0a5d6ce943720726e3c717587 100644 (file)
Binary files a/citadel/serv_fulltext.o and b/citadel/serv_fulltext.o differ