Skip to content

Commit

Permalink
Fixed binpath handling (bug 3563)
Browse files Browse the repository at this point in the history
  • Loading branch information
megastep committed Apr 11, 2008
1 parent f20ab4b commit 6a6aafb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a6aafb

Please sign in to comment.