summaryrefslogtreecommitdiff
path: root/sysutils/sformat/files/patch-libscg__scsiopen.c
blob: 2a3e9878f1d343afa25c8623a20f44aa2662b2c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);
 	}