summaryrefslogtreecommitdiff
path: root/sysutils/gstopd/files/patch-gstopd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/gstopd/files/patch-gstopd.c')
-rw-r--r--sysutils/gstopd/files/patch-gstopd.c9
1 files changed, 9 insertions, 0 deletions
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;
+ }