Skip to content

Commit

Permalink
fixup: ci warning
Browse files Browse the repository at this point in the history
  • Loading branch information
polarvid committed Apr 15, 2024
1 parent 9d79414 commit d76c215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lwp/terminal/freebsd/tty_pts.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ int pts_alloc(int fflags, struct rt_thread *td, struct dfs_file *ptm_file)
#else
rootpath = ptyfs_get_rootpath(ptmx_device);
RT_ASSERT(rootpath[strlen(rootpath) - 1] != '/');
snprintf(name_buf, DIRENT_NAME_MAX, "%s/%u", rootpath, psc->pts_unit);
snprintf(name_buf, DIRENT_NAME_MAX, "%s/%d", rootpath, psc->pts_unit);

/* setup the pts */
lwp_tty_register(tp, name_buf);
Expand Down

0 comments on commit d76c215

Please sign in to comment.