opnsense-ports/sysutils/sformat/files/patch-libscg__scsiopen.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
330 B
C

--- 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);
}