!4 fix build error

Merge pull request !4 from small_leek/xsl
This commit is contained in:
openeuler-ci-bot 2020-07-02 16:28:12 +08:00 committed by Gitee
commit 538bef0185
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -Naur psm-4abbc60/psm_ep.c psm-4abbc60-edit/psm_ep.c
--- psm-4abbc60/psm_ep.c 2020-07-02 14:18:23.738500086 +0800
+++ psm-4abbc60-edit/psm_ep.c 2020-07-02 14:22:39.097969891 +0800
@@ -1349,8 +1349,7 @@
b_new = (char *) devstr;
e = b_new + len;
- strncpy(e, devstring, len-1);
- e[len-1] = '\0';
+ strncpy(e, devstring, len);
ee = e + len;
i = 0;
while (e < ee && *e && i < PTL_MAX_INIT) {

View File

@ -1,6 +1,6 @@
Name: infinipath-psm
Version: 3.3
Release: 9
Release: 10
License: GPLv2 or BSD
Summary: Libraries for Intel Performance Scaled Messaging
URL: https://github.com/01org/psm
@ -25,6 +25,8 @@ Patch0004: 0001-Include-sysmacros.h.patch
Patch0005: 0001-Extend-buffer-for-uvalue-and-pvalue.patch
# Extend fdesc array
Patch0006: extend-fdesc-array.patch
# Fix stringop-truncation build error
Patch0007: fix-stringop-truncation-build-error.patch
%description
PSM API is Intel's low-level user-level communications interface for the True Scale family of products.
@ -76,6 +78,9 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/60-ipath.rule
%{_includedir}/{psm.h,psm_mq.h}
%changelog
* Thu Jul 02 2020 senlin <xiasenlin1@huawei.com> - 3.3-10
- Fix stringop-truncation build error
* Mon Mar 16 2020 Ling Yang <lingyang2@huawei.com> - 3.3-9
- Fixed URL