Skip to content

Commit f62f3c0

Browse files
committed
Merge branch 'master' of github.com:epics-modules/autosave
2 parents bb4b6c7 + 0a3b908 commit f62f3c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

asApp/src/dbrestore.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,12 @@ static void myDbLoadRecordsHook(const char* fname, const char* macro) {
16401640
}
16411641
}
16421642
n = epicsSnprintf(requestFileCmd, MAXSTRING, "file %s %s", requestFileName, macroString);
1643-
if (n < MAXSTRING) appendToFile(pitem->filename, requestFileCmd);
1643+
if (n < MAXSTRING) {
1644+
appendToFile(pitem->filename, requestFileCmd);
1645+
} else {
1646+
printf("myDbLoadRecordsHook: Can't include %s; requestFileCmd is too long (n = %i, MAXSTRING = %i)\n",
1647+
requestFileName, n, MAXSTRING);
1648+
}
16441649
}
16451650
}
16461651
}

0 commit comments

Comments
 (0)