Skip to content

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

Merged
ccmywish merged 1 commit into
RubyMetric:devfrom
juzeon:fix-163
Dec 27, 2024
Merged

Fix README and segmentation fault for FreeBSD, addressing #163#164
ccmywish merged 1 commit into
RubyMetric:devfrom
juzeon:fix-163

Conversation

@juzeon
Copy link
Copy Markdown
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
Copy Markdown
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 <nil@null.org> 占位符替换成你自己。

最后更新时间

  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
Copy Markdown
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
Copy Markdown
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