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

pppd: Fix sign-extension when displaying bytes in octal #30

Merged
merged 1 commit into from
Apr 17, 2016

Commits on Dec 20, 2014

  1. pppd: Fix sign-extension when displaying bytes in octal

    print_string() displays characters as \\%.03o but without first
    casting it from "char" to "unsigned char" so it gets sign-extended
    to an int. This causes output like \37777777630 instead of \230.
    
    Signed-off-by: Philip A. Prindeville <philipp@redfish-solutions.com>
    pprindeville committed Dec 20, 2014
    Configuration menu
    Copy the full SHA
    5e8c3cb View commit details
    Browse the repository at this point in the history