Skip to content

Commit 5322599

Browse files
committed
Fix mkstemps() argument
1 parent bfb6022 commit 5322599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/framework/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* | Yangmoooo <[email protected]>
1010
* |
1111
* Created On : <2023-08-29>
12-
* Last Modified : <2025-07-22>
12+
* Last Modified : <2025-07-28>
1313
*
1414
* chsrc framework
1515
* ------------------------------------------------------------*/
@@ -1347,7 +1347,7 @@ chsrc_make_tmpfile (char *filename, char *postfix, bool loud, char **tmpfilename
13471347
char *tmpfile = xy_strjoin (3, "chsrc_tmp_", filename, postfix);
13481348
FILE *f = fopen (tmpfile, "w+");
13491349
#else
1350-
char *tmpfile = xy_strjoin (4, "/tmp/", "chsrc_tmp_", filename, "_XXXXXX", postfix);
1350+
char *tmpfile = xy_strjoin (5, "/tmp/", "chsrc_tmp_", filename, "_XXXXXX", postfix);
13511351
size_t postfix_len = strlen (postfix);
13521352

13531353
/* 和 _mktemp_s() 参数不同,前者是整个缓存区大小,这里的长度是后缀长度 */

0 commit comments

Comments
 (0)