Skip to content

Commit

Permalink
Merge pull request #75 from jsaile/-
Browse files Browse the repository at this point in the history
Replaced deprecated method call pointer nbUInt8AtOffset  with call to…
  • Loading branch information
jecisc authored Aug 3, 2023
2 parents 67ded10 + 7bf6ff5 commit e080793
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repository/OSSubprocess/OSSUnixSubprocess.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Class {
#pools : [
'LibCSignalSharedPool'
],
#category : 'OSSubprocess'
#category : #OSSubprocess
}

{ #category : #'temp files' }
Expand Down Expand Up @@ -262,7 +262,7 @@ OSSUnixSubprocess >> collectArgumentPointersInto: aPointer [
pointer := ExternalAddress allocate: string size + 1.
self registerPointer: pointer.
LibC memCopy: string to: pointer size: string size.
pointer nbUInt8AtOffset: string size put: 0. "string terminating null char"
pointer uint8AtOffset: string size put: 0. "string terminating null char"
aPointer platformUnsignedLongAt: ((index - 1) * self systemAccessor sizeOfPointer) + 1 put: pointer value ].

aPointer platformUnsignedLongAt: ((self argVArguments size - 1) * self systemAccessor sizeOfPointer) + 1 put: 0.
Expand All @@ -279,7 +279,7 @@ OSSUnixSubprocess >> collectEnvVariablesPointersInto: aPointer [
pointer := ExternalAddress allocate: string size + 1.
self registerPointer: pointer.
LibC memCopy: string to: pointer size: string size.
pointer nbUInt8AtOffset: string size put: 0. "string terminating null char"
pointer uint8AtOffset: string size put: 0. "string terminating null char"
aPointer platformUnsignedLongAt: ((index - 1) * self systemAccessor sizeOfPointer) + 1 put: pointer value
].
"The array of pointers also needs to finish with a NULL"
Expand Down

0 comments on commit e080793

Please sign in to comment.