aboutsummaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-08-31 09:00:58 +0000
committerWerner Koch <[email protected]>2004-08-31 09:00:58 +0000
commit45accef52a9e703bd204087abc2dc0a4e15d57ac (patch)
tree55231da23a245c7cc1d74e69727edbf8f1bb37af /g10/openfile.c
parent* openfile.c (copy_options_file): Use gpg-conf.skel (diff)
downloadgnupg-45accef52a9e703bd204087abc2dc0a4e15d57ac.tar.gz
gnupg-45accef52a9e703bd204087abc2dc0a4e15d57ac.zip
Better take the length of SKELEXT into account
Diffstat (limited to 'g10/openfile.c')
-rw-r--r--g10/openfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index 663c2c5d3..dbf42db78 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -308,7 +308,8 @@ copy_options_file( const char *destdir )
if( opt.dry_run )
return;
- fname = xmalloc ( strlen(datadir) + strlen(destdir) + 15 );
+ fname = xmalloc ( strlen(datadir) + strlen(destdir)
+ strlen (SKELEXT) + 15 );
strcpy(stpcpy(fname, datadir), DIRSEP_S "gpg-conf" SKELEXT );
src = fopen( fname, "r" );
if( !src ) {