From 7dd09b3c1ad64caeff98681497e26034b604a88f Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 21 Feb 2010 13:17:21 +0100 Subject: [PATCH] Fix typo --- bacula/src/cats/myingres.c | 4 ++-- bacula/src/cats/myingres.sc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/cats/myingres.c b/bacula/src/cats/myingres.c index 0f24e93f35..43b300a3c1 100644 --- a/bacula/src/cats/myingres.c +++ b/bacula/src/cats/myingres.c @@ -450,9 +450,9 @@ INGconn *INGconnectDB(char *dbname, char *user, char *passwd) int sess_id; /* # line 471 "myingres.sc" */ - bstrcpy(ingdbname, dbname, sizeof(ingdbname)); + bstrncpy(ingdbname, dbname, sizeof(ingdbname)); if (user != NULL) { - bstrcpy(ingdbuser, user, sizeof(ingdbuser)); + bstrncpy(ingdbuser, user, sizeof(ingdbuser)); if (passwd != NULL) { bstrncpy(ingdbpasw, passwd, sizeof(ingdbpasw)); } else { diff --git a/bacula/src/cats/myingres.sc b/bacula/src/cats/myingres.sc index 253ed93b13..8ef5f61b21 100644 --- a/bacula/src/cats/myingres.sc +++ b/bacula/src/cats/myingres.sc @@ -470,10 +470,10 @@ INGconn *INGconnectDB(char *dbname, char *user, char *passwd) int sess_id; EXEC SQL END DECLARE SECTION; - bstrcpy(ingdbname, dbname, sizeof(ingdbname)); + bstrncpy(ingdbname, dbname, sizeof(ingdbname)); if (user != NULL) { - bstrcpy(ingdbuser, user, sizeof(ingdbuser)); + bstrncpy(ingdbuser, user, sizeof(ingdbuser)); if (passwd != NULL) { bstrncpy(ingdbpasw, passwd, sizeof(ingdbpasw)); } else { -- 2.39.5