Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Esteban Blanc
proview
Commits
6cbe0f8a
Commit
6cbe0f8a
authored
Jan 15, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input size objid and attrrref was to small
parent
62eeaa27
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
6 deletions
+57
-6
wb/lib/wb/src/wb_wattnav.cpp
wb/lib/wb/src/wb_wattnav.cpp
+19
-3
wb/lib/wb/src/wb_wnav.cpp
wb/lib/wb/src/wb_wnav.cpp
+38
-3
No files found.
wb/lib/wb/src/wb_wattnav.cpp
View file @
6cbe0f8a
/*
* Proview $Id: wb_wattnav.cpp,v 1.1
4 2007-01-11 11:40:30
claes Exp $
* Proview $Id: wb_wattnav.cpp,v 1.1
5 2007-01-15 13:23:17
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -126,7 +126,23 @@ int WAttNav::check_attr( int *multiline, brow_tObject *node,
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
&
len
);
free
(
p
);
switch
(
item
->
type_id
)
{
case
pwr_eType_Objid
:
case
pwr_eType_AttrRef
:
case
pwr_eType_ClassId
:
*
size
=
sizeof
(
pwr_tOName
)
-
1
;
break
;
case
pwr_eType_VolumeId
:
case
pwr_eType_TypeId
:
*
size
=
sizeof
(
pwr_tObjName
)
-
1
;
break
;
case
pwr_eType_Time
:
case
pwr_eType_DeltaTime
:
*
size
=
40
;
break
;
default:
*
size
=
item
->
size
;
}
if
(
item
->
type_id
==
pwr_eType_Text
)
*
multiline
=
1
;
else
...
...
@@ -153,7 +169,7 @@ int WAttNav::check_attr( int *multiline, brow_tObject *node,
strcpy
(
name
,
""
);
*
init_value
=
name
;
*
multiline
=
0
;
*
size
=
sizeof
(
name
);
*
size
=
sizeof
(
name
)
-
1
;
*
node
=
((
WItemObjectName
*
)
base_item
)
->
node
;
break
;
...
...
wb/lib/wb/src/wb_wnav.cpp
View file @
6cbe0f8a
/*
* Proview $Id: wb_wnav.cpp,v 1.3
3 2007-01-11 11:40:30
claes Exp $
* Proview $Id: wb_wnav.cpp,v 1.3
4 2007-01-15 13:23:45
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -738,7 +738,25 @@ int WNav::check_attr_value( brow_tObject node, int *multiline,
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
&
len
);
free
(
p
);
switch
(
item
->
type_id
)
{
case
pwr_eType_Objid
:
case
pwr_eType_AttrRef
:
case
pwr_eType_ClassId
:
*
size
=
sizeof
(
pwr_tOName
)
-
1
;
break
;
case
pwr_eType_VolumeId
:
case
pwr_eType_TypeId
:
*
size
=
sizeof
(
pwr_tObjName
)
-
1
;
break
;
case
pwr_eType_Time
:
case
pwr_eType_DeltaTime
:
*
size
=
40
;
break
;
default:
*
size
=
item
->
size
;
}
if
(
item
->
type_id
==
pwr_eType_Text
)
*
multiline
=
1
;
else
...
...
@@ -761,7 +779,24 @@ int WNav::check_attr_value( brow_tObject node, int *multiline,
wnav_attrvalue_to_string
(
ldhses
,
item
->
type_id
,
p
,
init_value
,
&
len
);
free
(
p
);
switch
(
item
->
type_id
)
{
case
pwr_eType_Objid
:
case
pwr_eType_AttrRef
:
case
pwr_eType_ClassId
:
*
size
=
sizeof
(
pwr_tOName
)
-
1
;
break
;
case
pwr_eType_VolumeId
:
case
pwr_eType_TypeId
:
*
size
=
sizeof
(
pwr_tObjName
)
-
1
;
break
;
case
pwr_eType_Time
:
case
pwr_eType_DeltaTime
:
*
size
=
40
;
break
;
default:
*
size
=
item
->
size
;
}
if
(
item
->
type_id
==
pwr_eType_Text
)
*
multiline
=
1
;
else
...
...
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