openbsd-ports/security/cfs/patches/patch-cfs_nfs_c

12 lines
268 B
Plaintext
Raw Normal View History

--- cfs_nfs.c.orig Mon Dec 25 07:24:31 1995
+++ cfs_nfs.c Sun Mar 13 16:57:45 2005
@@ -51,7 +51,7 @@
ret[0]='\0';
for (i=0; i<NFS_FHSIZE; i++) {
- sprintf((char *)x,"%02x",fh[i]);
+ (void)snprintf((char *)x,3,"%02x",fh[i]);
strcat(ret,x);
}
return ret;