Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f3d270df
Commit
f3d270df
authored
Jul 10, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B29070-5.0-opt
parents
ea9825d6
7735a2f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
client/mysql.cc
client/mysql.cc
+6
-1
mysys/my_conio.c
mysys/my_conio.c
+5
-2
No files found.
client/mysql.cc
View file @
f3d270df
...
...
@@ -1086,6 +1086,11 @@ static int read_and_execute(bool interactive)
something else is still in console input buffer
*/
}
while
(
tmpbuf
.
alloced_length
()
<=
clen
);
/*
An empty line is returned from my_cgets when there's error reading :
Ctrl-c for example
*/
if
(
line
)
line
=
buffer
.
c_ptr
();
#else
/* OS2 */
buffer
.
length
(
0
);
...
...
mysys/my_conio.c
View file @
f3d270df
...
...
@@ -184,16 +184,19 @@ char* my_cgets(char *buffer, unsigned long clen, unsigned long* plen)
}
while
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
);
/* We go here on error reading the string (Ctrl-C for example) */
if
(
!*
plen
)
result
=
NULL
;
/* purecov: inspected */
if
(
result
!=
NULL
)
{
if
(
buffer
[
*
plen
-
2
]
==
'\r'
)
if
(
*
plen
>
1
&&
buffer
[
*
plen
-
2
]
==
'\r'
)
{
*
plen
=
*
plen
-
2
;
}
else
{
if
(
buffer
[
*
plen
-
1
]
==
'\r'
)
if
(
*
plen
>
0
&&
buffer
[
*
plen
-
1
]
==
'\r'
)
{
char
tmp
[
3
];
int
tmplen
=
sizeof
(
tmp
);
...
...
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