Warning fixes
This commit is contained in:
@@ -277,7 +277,7 @@ void CfgScreensize() {
|
||||
}
|
||||
else if(CFG->screensize == 0) {
|
||||
if(strnieql(val, "Mode", 4)) {
|
||||
sscanf(val+4, " %x", &CFG->screensize);
|
||||
sscanf(val+4, " %x", (uint *)&CFG->screensize);
|
||||
CFG->screensize <<= 8;
|
||||
}
|
||||
}
|
||||
|
@@ -204,7 +204,7 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
||||
}
|
||||
if(strieql(tplfile, "built-in") or not fexist(tplfile) or CFG->tpl.empty()) {
|
||||
tmptpl = YES; // Create a temporary template
|
||||
mktemp(strcpy(tplfile, AddPath(CFG->templatepath, "GDXXXXXX")));
|
||||
mktemp(strcpy(tplfile, AddPath(CFG->goldpath, "GDXXXXXX")));
|
||||
fp = fsopen(tplfile, "wt", CFG->sharemode);
|
||||
if(fp) {
|
||||
fputs("@header= @oecho (@caddr) @align{79}{=}\n", fp);
|
||||
|
Reference in New Issue
Block a user