Merge compiz:mitya57/fix-gcc-stringop-truncation-error into compiz:master
Proposed by
Dmitry Shachnev
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | 3c1075eee923c7b466d4f4f390241a9f072ea554 |
Merged at revision: | 71d4a9b2d4169743a613fe2835e39abc03019624 |
Proposed branch: | compiz:mitya57/fix-gcc-stringop-truncation-error |
Merge into: | compiz:master |
Diff against target: |
12 lines (+1/-1) 1 file modified
plugins/session/src/session.cpp (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alberts Muktupāvels | Approve | ||
Marco Trevisan (Treviño) | Pending | ||
Compiz Maintainers | Pending | ||
Review via email: mp+363211@code.launchpad.net |
Commit message
session: Fix GCC -Wstringop-
Description of the change
session: Fix GCC -Wstringop-
There is no sense in calling strncpy when nItems == 0.
The correct check is copied from TitleinfoScreen
To post a comment you must log in.
Cherry-picked as https:/ /git.launchpad. net/compiz/ commit/ ?id=71d4a9b2d41 69743a613fe2835 e39abc03019624.