Skip to content

Fix README and segmentation fault for FreeBSD, addressing #163 #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

juzeon
Copy link
Contributor

@juzeon juzeon commented Dec 27, 2024

描述

问题的背景

Fix README and segmentation fault for FreeBSD, addressing #163

All credits to @ccmywish

相关 issue

这个PR做了什么

修改README,增加-Ilib;修复xy_run()

static char *
xy_run (const char *cmd, unsigned long n)
{
  // 少了一个 return
  xy_run_iter (cmd, n, NULL);
}

方案

如上


实现

如上


测试

./chsrc set freebsd first

@ccmywish
Copy link
Contributor

ccmywish commented Dec 27, 2024

👍👍👍

  1. https://github.com/RubyMetric/chsrc/blob/main/src/chsrc-main.c#L23
  2. https://github.com/RubyMetric/chsrc/blob/main/lib/xy.h#L8

最后在这两个地方添加你的贡献信息即可。chsrc-main.c 那个位置留一个空行,xy.h 那里把 Nil Null <[email protected]> 占位符替换成你自己。

最后更新时间

  1. https://github.com/RubyMetric/chsrc/blob/main/lib/xy.h#L11
  2. https://github.com/RubyMetric/chsrc/blob/main/src/chsrc-main.c#L25

@juzeon
Copy link
Contributor Author

juzeon commented Dec 27, 2024

感谢指导,已填好

@ccmywish ccmywish changed the base branch from main to dev December 27, 2024 06:43
@ccmywish ccmywish merged commit 1ab8b7c into RubyMetric:dev Dec 27, 2024
@ccmywish
Copy link
Contributor

@juzeon 👍 感谢参与贡献,happy changing source ~ 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FreeBSD 编译/运行失败 Segmentation fault (core dumped)
2 participants