Skip to content
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

unix: replace use of strcpy in mkerrors.sh #147

Closed
wants to merge 1 commit into from

Commits on Jun 6, 2023

  1. unix: replace use of strcpy in mkerrors.sh

    On OpenBSD-current, clang emits a warning message to standard output
    for the use of strcpy, e.g.:
    
    _errors.c(/tmp/_errors-673190.o:(main)): warning: strcpy() is almost always
    misused, please use strlcpy()
    
    This message makes it into the Go source being created, causing gofmt
    to error on the invalid syntax, and leaving the zerrors file empty.
    
    Using strlcpy would be preferred here, but strncpy is enough to
    silence this message, and is more portable.
    jrick committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    a43b6fb View commit details
    Browse the repository at this point in the history