Skip to content

Commit 40342be

Browse files
committed
v0.3.1 fix(core): use strcpy rather than strcat to init error message
1 parent 624be92 commit 40342be

File tree

3 files changed

+163
-163
lines changed

3 files changed

+163
-163
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "talib-binding",
33
"main": "./build/Release/talib_binding.node",
44
"types": "./src/talib-binding.generated.d.ts",
5-
"version": "0.3.0",
5+
"version": "0.3.1",
66
"license": "MIT",
77
"scripts": {
88
"install": "node-gyp configure build -j4"

src/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export function generateBindings({_}: Arguments) {
393393
.normal('TA_RetCodeInfo retCodeInfo;')
394394
.normal('TA_SetRetCodeInfo(result, &retCodeInfo);')
395395
.normal('char error[100];')
396-
.normal(`strcat(error, "TA_${name} ERROR: ");`)
396+
.normal(`strcpy(error, "TA_${name} ERROR: ");`)
397397
.normal('strcat(error, retCodeInfo.enumStr);')
398398
.normal('strcat(error, " - ");')
399399
.normal('strcat(error, retCodeInfo.infoStr);')

0 commit comments

Comments
 (0)