Skip to content
Browse files

Fixes EUCA-3962 where a safe_strncpy() call needed some adjustment.

  • Loading branch information...
1 parent b3418e2 commit 65b1584de92e22efa58fbf3c983b472a9d301a4b @gelinasc gelinasc committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/vbr.c
View
2 storage/vbr.c
@@ -1335,7 +1335,7 @@ static artifact * art_alloc_vbr (virtualBootRecord * vbr, boolean do_make_work_c
a2 = art_alloc (art_id, art_sig, a->size_bytes, !do_make_work_copy, must_be_file, FALSE, copy_creator, vbr);
if (a2) {
if (sshkey)
- safe_strncpy (a2->sshkey, sshkey, sizeof (a2->sshkey)-1 );
+ safe_strncpy (a2->sshkey, sshkey, sizeof (a2->sshkey) );
if (art_add_dep (a2, a) == OK) {
a = a2;

0 comments on commit 65b1584

Please sign in to comment.
Something went wrong with that request. Please try again.