Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3f94bc19
Commit
3f94bc19
authored
Apr 04, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct off-by-one error in strncat() usage.
parent
7fbf0af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/interfaces/odbc/convert.c
src/interfaces/odbc/convert.c
+4
-4
No files found.
src/interfaces/odbc/convert.c
View file @
3f94bc19
...
...
@@ -688,9 +688,9 @@ int lobj_fd, retval;
oldstmtlen
=
strlen
(
old_statement
);
for
(
opos
=
0
;
opos
<
oldstmtlen
;
opos
++
)
{
for
(
opos
=
0
;
opos
<
oldstmtlen
;
opos
++
)
{
// Squeeze carriage-return
s/lin
feed pairs to linefeed only
// Squeeze carriage-return
/line
feed pairs to linefeed only
if
(
old_statement
[
opos
]
==
'\r'
&&
opos
+
1
<
oldstmtlen
&&
old_statement
[
opos
+
1
]
==
'\n'
)
{
continue
;
...
...
@@ -1156,7 +1156,7 @@ char key[33];
*
funcEnd
=
svchar
;
while
((
*
funcEnd
!=
'\0'
)
&&
isspace
(
*
funcEnd
))
funcEnd
++
;
/* We expect left parenthe
n
sis here,
/* We expect left parenthesis here,
* else return fn body as-is since it is
* one of those "function constants".
*/
...
...
@@ -1175,7 +1175,7 @@ char key[33];
}
/* copy mapped name and remaining input string */
strcpy
(
escape
,
mapFunc
);
strncat
(
escape
,
funcEnd
,
sizeof
(
escape
)
-
strlen
(
mapFunc
));
strncat
(
escape
,
funcEnd
,
sizeof
(
escape
)
-
1
-
strlen
(
mapFunc
));
}
else
{
/* Bogus key, leave untranslated */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment