diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-01-10 11:45:57 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-01-10 11:45:57 +0300 |
commit | e9c8e0316fbce2edfc9c2b6d0ddce18a3ea2a22a (patch) | |
tree | 1df10df2db106cd3e4c010463c44d4664a054204 /source/blender/blenloader | |
parent | 0372b642705c5304f252f7691b188fc65dd51b59 (diff) |
Some minor fixes from coverity reports.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index fd144c0ebc0..a8c868a6210 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -10025,7 +10025,7 @@ static void read_libraries(FileData *basefd, ListBase *mainlist) printf(" relative lib: %s\n", mainptr->curlib->name); printf(" enter a new path:\n"); - if (scanf("%s", newlib_path) > 0) { + if (scanf("%1023s", newlib_path) > 0) { /* Warning, keep length in sync with FILE_MAX! */ BLI_strncpy(mainptr->curlib->name, newlib_path, sizeof(mainptr->curlib->name)); BLI_strncpy(mainptr->curlib->filepath, newlib_path, sizeof(mainptr->curlib->filepath)); BLI_cleanup_path(G.main->name, mainptr->curlib->filepath); |