mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed wrong sizeof's
This commit is contained in:
parent
0e651eaeed
commit
f016765441
12
src/elogd.c
12
src/elogd.c
@ -7658,12 +7658,12 @@ void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head,
|
|||||||
else if (lbs == NULL && getcfg("global", "CSS", str, sizeof(str)))
|
else if (lbs == NULL && getcfg("global", "CSS", str, sizeof(str)))
|
||||||
strlcpy(css, str, sizeof(css));
|
strlcpy(css, str, sizeof(css));
|
||||||
|
|
||||||
strlcpy(file_name, resource_dir, sizeof(str));
|
strlcpy(file_name, resource_dir, sizeof(file_name));
|
||||||
strlcat(file_name, "themes", sizeof(str));
|
strlcat(file_name, "themes", sizeof(file_name));
|
||||||
strlcat(file_name, DIR_SEPARATOR_STR, sizeof(str));
|
strlcat(file_name, DIR_SEPARATOR_STR, sizeof(file_name));
|
||||||
strlcat(file_name, theme_name, sizeof(str));
|
strlcat(file_name, theme_name, sizeof(file_name));
|
||||||
strlcat(file_name, DIR_SEPARATOR_STR, sizeof(str));
|
strlcat(file_name, DIR_SEPARATOR_STR, sizeof(file_name));
|
||||||
strlcat(file_name, css, sizeof(str));
|
strlcat(file_name, css, sizeof(file_name));
|
||||||
|
|
||||||
FILE *f = fopen(file_name, "rb");
|
FILE *f = fopen(file_name, "rb");
|
||||||
if (f != NULL) {
|
if (f != NULL) {
|
||||||
|
|||||||
@ -155,15 +155,16 @@
|
|||||||
D52BA2F113999DB0000458E3 /* Project object */ = {
|
D52BA2F113999DB0000458E3 /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0930;
|
LastUpgradeCheck = 1020;
|
||||||
ORGANIZATIONNAME = PSI;
|
ORGANIZATIONNAME = PSI;
|
||||||
};
|
};
|
||||||
buildConfigurationList = D52BA2F413999DB0000458E3 /* Build configuration list for PBXProject "elogd" */;
|
buildConfigurationList = D52BA2F413999DB0000458E3 /* Build configuration list for PBXProject "elogd" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
developmentRegion = English;
|
developmentRegion = en;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
en,
|
en,
|
||||||
|
Base,
|
||||||
);
|
);
|
||||||
mainGroup = D52BA2EF13999DB0000458E3;
|
mainGroup = D52BA2EF13999DB0000458E3;
|
||||||
productRefGroup = D52BA2FB13999DB0000458E3 /* Products */;
|
productRefGroup = D52BA2FB13999DB0000458E3 /* Products */;
|
||||||
@ -212,6 +213,7 @@
|
|||||||
D52BA30113999DB0000458E3 /* Debug */ = {
|
D52BA30113999DB0000458E3 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
CLANG_WARN_COMMA = YES;
|
CLANG_WARN_COMMA = YES;
|
||||||
@ -253,6 +255,7 @@
|
|||||||
D52BA30213999DB0000458E3 /* Release */ = {
|
D52BA30213999DB0000458E3 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
CLANG_WARN_COMMA = YES;
|
CLANG_WARN_COMMA = YES;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user