mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d0f3ecfbb | |||
| 2eb786ff0d |
+1
-1
@@ -415,7 +415,7 @@ void copyover_recover()
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
fOld = TRUE;
|
fOld = TRUE;
|
||||||
if (fscanf(fp, "%d %ld %s %s %s\n", &desc, &pref, name, host, guiopt) != 5) {
|
if (fscanf(fp, "%d %ld %511s %1023s %1023s\n", &desc, &pref, name, host, guiopt) != 5) {
|
||||||
if(!feof(fp)) {
|
if(!feof(fp)) {
|
||||||
if(ferror(fp))
|
if(ferror(fp))
|
||||||
log("SYSERR: error reading copyover file %s: %s", COPYOVER_FILE, strerror(errno));
|
log("SYSERR: error reading copyover file %s: %s", COPYOVER_FILE, strerror(errno));
|
||||||
|
|||||||
+1
-1
@@ -1722,5 +1722,5 @@ void var_subst(void *go, struct script_data *sc, trig_data *trig,
|
|||||||
left -= len;
|
left -= len;
|
||||||
} /* else if *p .. */
|
} /* else if *p .. */
|
||||||
} /* while *p .. */
|
} /* while *p .. */
|
||||||
*buf = '\0';
|
buf[sizeof(buf) - 1] = '\0';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user