aboutsummaryrefslogtreecommitdiff
path: root/sysutils/sformat/files/patch-libscg__scsiopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/sformat/files/patch-libscg__scsiopen.c')
-rw-r--r--sysutils/sformat/files/patch-libscg__scsiopen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/sformat/files/patch-libscg__scsiopen.c b/sysutils/sformat/files/patch-libscg__scsiopen.c
new file mode 100644
index 000000000000..2a3e9878f1d3
--- /dev/null
+++ b/sysutils/sformat/files/patch-libscg__scsiopen.c
@@ -0,0 +1,11 @@
+--- libscg/scsiopen.c.orig Sun Mar 18 14:54:18 2001
++++ libscg/scsiopen.c Tue May 20 22:58:07 2003
+@@ -239,7 +239,7 @@
+ }
+ if (scg__open(scgp, devname) <= 0) {
+ if (errs && scgp->errstr)
+- js_snprintf(errs, slen, scgp->errstr);
++ js_snprintf(errs, slen, "%s", scgp->errstr);
+ scg_sfree(scgp);
+ return ((SCSI *)0);
+ }