Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Caco
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vytor Calixto
Caco
Commits
6f3b7f0f
You need to sign in or sign up before continuing.
Commit
6f3b7f0f
authored
9 years ago
by
Israel Barreto Sant'Anna
Committed by
Vytor Calixto
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed server ls
Signed-off-by:
Israel B. Sant'Anna
<
ibsa14@inf.ufpr.br
>
parent
956a5e63
No related branches found
No related tags found
1 merge request
!1
Lento
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Protocol.cpp
+1
-1
1 addition, 1 deletion
Protocol.cpp
dirFunctions.cpp
+1
-0
1 addition, 0 deletions
dirFunctions.cpp
with
2 additions
and
1 deletion
Protocol.cpp
+
1
−
1
View file @
6f3b7f0f
...
...
@@ -69,7 +69,7 @@ int Protocol::setData(vector<BYTE> data, int type){
msg
.
data
=
subvector
;
if
(
size
<
MINSIZE
){
BYTE
zero
=
0x00
;
msg
.
data
.
insert
(
msg
.
data
.
begin
(),
MINSIZE
-
size
,
zero
);
msg
.
data
.
insert
(
msg
.
data
.
end
(),
MINSIZE
-
size
,
zero
);
size
=
MINSIZE
;
}
msg
.
size
=
bitset
<
SIZE_S
>
(
size
);
...
...
This diff is collapsed.
Click to expand it.
dirFunctions.cpp
+
1
−
0
View file @
6f3b7f0f
...
...
@@ -16,6 +16,7 @@ void cd(string path){
string
ls
(
string
args
){
string
output
;
args
+=
" 2>&1"
;
FILE
*
lsOut
=
popen
(
args
.
c_str
(),
"r"
);
if
(
!
lsOut
){
throw
"Couldn't execute ls"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment