Closed Bug 1438426 Opened 7 years ago Closed 7 years ago

stringop-truncation warning in pathsub.c

Categories

(NSS :: Build, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mt, Assigned: mt)

Details

Attachments

(1 file)

This use of strncpy in pathsub.c is offending gcc 8: strncpy(cp, "../", 3); Changing this to memcpy works nicely.
Comment on attachment 8951146 [details] Bug 1438426 Avoid stringop-truncation warning Franziskus Kiefer [:fkiefer or :franziskus] has approved the revision. https://phabricator.services.mozilla.com/D596
Attachment #8951146 - Flags: review+
Assignee: nobody → martin.thomson
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: 3.36 → 3.37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: