Changeset: 800ccc44024e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=800ccc44024e
Modified Files:
        tools/mserver/mserver5.c
Branch: Aug2011
Log Message:

Fix conversion from alloca to buffer.
&secret when secret is an array is still secret.


diffs (20 lines):

diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -511,6 +511,7 @@ main(int argc, char **av)
                /* unlock the vault, first see if we can find the file which
                 * holds the secret */
                char secret[1024];
+               char *secretp = secret;
                FILE* secretf;
                size_t len;
                
@@ -540,7 +541,7 @@ main(int argc, char **av)
                        }
                        fclose(secretf);
                }
-               if ((err = AUTHunlockVault((char **)&secret)) != MAL_SUCCEED)
+               if ((err = AUTHunlockVault(&secretp)) != MAL_SUCCEED)
                        GDKfatal("%s", err);
        }
        /* make sure the authorisation BATs are loaded */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to