Fixed crash with certain set of parameters and no password file is present

This commit is contained in:
Stefan Ritt 2017-01-31 11:33:17 +01:00
parent edc5e85a21
commit 1d0b305370
2 changed files with 11 additions and 7 deletions

View File

@ -8804,12 +8804,14 @@ int build_subst_list(LOGBOOK * lbs, char list[][NAME_LENGTH], char value[][NAME_
}
/* add logbook */
strcpy(list[i], "logbook");
strlcpy(value[i++], lbs->name, NAME_LENGTH);
/* add logbook */
strcpy(list[i], "elogbook");
strlcpy(value[i++], lbs->name_enc, NAME_LENGTH);
if (lbs) {
strcpy(list[i], "logbook");
strlcpy(value[i++], lbs->name, NAME_LENGTH);
/* add logbook */
strcpy(list[i], "elogbook");
strlcpy(value[i++], lbs->name_enc, NAME_LENGTH);
}
/* add date */
strcpy(list[i], "date");

View File

@ -278,11 +278,12 @@
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
HAVE_SSL1,
HAVE_SSL,
HAVE_KRB5,
DEBUG,
);
GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
HEADER_SEARCH_PATHS = /opt/local/include;
OTHER_LDFLAGS = (
"-lssl",
"-lkrb5",
@ -300,6 +301,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
HEADER_SEARCH_PATHS = /opt/local/include;
OTHER_LDFLAGS = (
"-lssl",
"-lkrb5",