summaryrefslogtreecommitdiffstats
path: root/ldap/admin/src/namegen.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-03-05 04:29:24 +0000
committerRich Megginson <rmeggins@redhat.com>2005-03-05 04:29:24 +0000
commitb352660e243c7b9b7d050f1c38cff1c9faf278b1 (patch)
treeede08019beb931c3206609ab2377a015d510bdb4 /ldap/admin/src/namegen.c
parentf08951680ddfebc3f3df07e720ad0650fe473c0f (diff)
downloadds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.tar.gz
ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.tar.xz
ds-b352660e243c7b9b7d050f1c38cff1c9faf278b1.zip
clean up sprintf usage and many other flawfinder issues; clean up compiler warnings on Linux; remove pam_passthru from DS 7.1
Diffstat (limited to 'ldap/admin/src/namegen.c')
-rw-r--r--ldap/admin/src/namegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldap/admin/src/namegen.c b/ldap/admin/src/namegen.c
index 3b24873b..bdb8c4e1 100644
--- a/ldap/admin/src/namegen.c
+++ b/ldap/admin/src/namegen.c
@@ -46,7 +46,7 @@ int main (int argc, char **argv)
strftime(szDate, sizeof (szDateFile), "%Y_%m_%d_%H%M%S",
sCurTime);
- sprintf (szDateFile, "%s.bat", szDate);
+ PR_snprintf (szDateFile, sizeof(szDateFile), "%s.bat", szDate);
/* create date batch file */
fBatch = fopen (szDateFile, "w");
@@ -73,7 +73,7 @@ int main (int argc, char **argv)
exit (1);
}
- sprintf (szCmd, "call %s", szDate);
+ PR_snprintf (szCmd, sizeof(szCmd), "call %s", szDate);
rt = fwrite (szCmd, strlen (szCmd), 1, fBatch);
if (rt != 1)
@@ -92,7 +92,7 @@ int main (int argc, char **argv)
exit (1);
}
- sprintf (szCmd, "del %s\ndel bstart.bat\nset DATESTR=", szDateFile);
+ PR_snprintf (szCmd, sizeof(szCmd), "del %s\ndel bstart.bat\nset DATESTR=", szDateFile);
rt = fwrite (szCmd, strlen(szCmd), 1, fBatch);
if (rt != 1)