Permalink
Browse files

Fixed binpath handling (bug 3563)

  • Loading branch information...
megastep committed Apr 11, 2008
1 parent f20ab4b commit 6a6aafba2b02881402671dc9f518b03de3c2e3af
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.xml
  2. +1 −1 copy.c
View
@@ -827,8 +827,8 @@ There are several optional attributes of the binary element:
args Specify optional arguments to be added on the command line when running the binary.
inline When set to 'yes' the text content of the element is used as script
- content instead of a path. The value of 'binarypath' is used as
- script name in this case
+ content instead of a path. The value of 'binarypath' is used as
+ script name in this case
The FILES element:
View
2 copy.c
@@ -767,7 +767,7 @@ ssize_t copy_binary(install_info *info, xmlNodePtr node, const char *filedesc, c
if(binpath) {
// binary path specified, only try this location
- strncpy(binarylocations[0], binpath, PATH_MAX);
+ snprintf(binarylocations[0], PATH_MAX, "%s/%s", binpath, final);
numlocations = 1;
}
else {

0 comments on commit 6a6aafb

Please sign in to comment.