From b7b689cd822a347df809b3e60d0fd472469d1ed7 Mon Sep 17 00:00:00 2001 From: Michael Reifenberger Date: Thu, 10 Oct 2013 13:03:28 +0000 Subject: [PATCH] Fix build with clang --- sysutils/gstopd/files/patch-gstopd.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sysutils/gstopd/files/patch-gstopd.c diff --git a/sysutils/gstopd/files/patch-gstopd.c b/sysutils/gstopd/files/patch-gstopd.c new file mode 100644 index 000000000000..35902012dd02 --- /dev/null +++ b/sysutils/gstopd/files/patch-gstopd.c @@ -0,0 +1,9 @@ +--- gstopd.c.orig 2013-10-10 12:51:01.431793192 +0000 ++++ gstopd.c 2013-10-10 12:58:54.538750707 +0000 +@@ -116,5 +116,5 @@ + errx( 1, "Error %d accessing %s", errno, path ); + } +- snprintf( devs[i].name, 6, argv[i] ); ++ snprintf( devs[i].name, 6, "%s", argv[i] ); + devs[i].lastt = 1; + }