summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
authorUlf Jordan <jordan@chalmers.se>2007-10-13 18:06:12 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-10-13 18:06:12 +0000
commit39a5bf74efd9c18b55d6c9354982807e3da37e97 (patch)
tree90ab3000d3f98ce21795f2d8e69f7a8a1627951f /util/superiotool/superiotool.c
parent45c1556df90b78cf6ac117ca75631a64747843a1 (diff)
downloadcoreboot-39a5bf74efd9c18b55d6c9354982807e3da37e97.tar.xz
Set the superiotool version number from svn at build time.
Signed-off-by: Ulf Jordan <jordan@chalmers.se> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2852 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r--util/superiotool/superiotool.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 6c93f58c6b..7b5bb40f75 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -170,12 +170,7 @@ void probing_for(const char *vendor, const char *info, uint16_t port)
static void print_version(void)
{
- char tmp[80];
-
- strncpy((char *)&tmp,
- (const char *)&SUPERIOTOOL_VERSION[6],
- strlen(SUPERIOTOOL_VERSION) - 8);
- printf("superiotool r%s\n", (char *)&tmp);
+ printf("superiotool r%s\n", SUPERIOTOOL_VERSION);
}
int main(int argc, char *argv[])