mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcalc: Coverity (memory corruption, moderate)
This commit is contained in:
parent
4c6e66ceb8
commit
ff3cd78ac0
1 changed files with 2 additions and 2 deletions
|
@ -1638,10 +1638,10 @@ read_rcfiles(void) /* Read .dtcalcrc's from home and current directories. */
|
|||
if ((entry = getpwuid(getuid())) == NULL) return ;
|
||||
home = entry->pw_dir ;
|
||||
}
|
||||
SPRINTF(name, "%s/%s", home, RCNAME) ;
|
||||
snprintf(name, MAXPATHLEN, "%s/%s", home, RCNAME) ;
|
||||
get_rcfile(name) ; /* Read .dtcalcrc from users home directory. */
|
||||
|
||||
SPRINTF(name, "%s/%s", getcwd(pathname, MAXPATHLEN+1), RCNAME) ;
|
||||
snprintf(name, MAXPATHLEN, "%s/%s", getcwd(pathname, MAXPATHLEN+1), RCNAME) ;
|
||||
get_rcfile(name) ; /* Read .dtcalcrc file from current directory. */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue