Skip to content

Commit f333087

Browse files
authored
Update drcp.c - Add secure code change (#360)
1 parent 669a6ca commit f333087

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C/drcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ int main(int argc, char **argv)
9898
checkerr(errhp, rc);
9999

100100
printf("Enter the DB username: ");
101-
scanf("%s", userName);
101+
scanf("%128s", userName);
102102
printf("Enter the DB password: ");
103-
scanf("%s", userPassword);
103+
scanf("%128s", userPassword);
104104

105105
rc = OCISessionPoolCreate(envhp, errhp, spoolhp, &poolName, &poolNameLen,
106106
connectString, strlen((char *)connectString), 0, UB4MAXVAL, 1,

0 commit comments

Comments
 (0)