aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-10-28 17:03:37 -0500
committerRob Landley <rob@landley.net>2020-10-28 17:03:37 -0500
commit7b0ea0a21fb2d97c7bd24987f8ccf27548c0b004 (patch)
treee122684aeedcb0bbf5af09a42ebbf0759c4c1cc2 /main.c
parent095891525bcb4fea341a27f75b5b5d52915cf5aa (diff)
downloadtoybox-7b0ea0a21fb2d97c7bd24987f8ccf27548c0b004.tar.gz
Tweak help text again.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index ced2a65b..7c60bdf4 100644
--- a/main.c
+++ b/main.c
@@ -21,7 +21,7 @@ struct toy_list toy_list[] = {
struct toy_context toys;
union global_union this;
-char toybuf[4096], libbuf[4096];
+char *toybox_version = TOYBOX_VERSION, toybuf[4096], libbuf[4096];
struct toy_list *toy_find(char *name)
{
@@ -84,7 +84,7 @@ void toy_singleinit(struct toy_list *which, char *argv[])
}
if (!strcmp(argv[1], "--version")) {
- xputs("toybox "TOYBOX_VERSION);
+ xprintf("toybox %s\n", toybox_version);
xexit();
}
}