1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix a couple of fprintf format string errors

This commit is contained in:
Kris Kennaway 2002-06-07 00:00:06 +00:00
parent eb3c81d3f6
commit 2fcda941f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60733

View File

@ -1,5 +1,5 @@
--- src/db_file.c.orig Thu Apr 20 05:44:56 2000
+++ src/db_file.c Thu Jul 13 07:39:36 2000
+++ src/db_file.c Thu Jun 6 16:56:48 2002
@@ -212,7 +212,7 @@
if((retval=fork())==0){
/* The child process */
@ -9,3 +9,21 @@
/* WARNING This causes weird problems. Don't do it.
fclose(conf->db_in);
*/
@@ -447,7 +447,7 @@
}
if(tmpstr){
- retval=fprintf(file,tmpstr);
+ retval=fprintf(file,"%s",tmpstr);
free(tmpstr);
return retval;
}else {
@@ -484,7 +484,7 @@
tmpstr=encode_base64(ptr,strlen(ptr));
- retval=fprintf(file,tmpstr);
+ retval=fprintf(file,"%s",tmpstr);
free(tmpstr);
free(ptr);