Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • W weston
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 362
    • Issues 362
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 124
    • Merge requests 124
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waylandwayland
  • weston
  • Repository
  • weston
  • clients
  • simple-egl.c
Find file BlameHistoryPermalink
  • Pekka Paalanen's avatar
    clients: fix len-string formatting · 1ca4ed20
    Pekka Paalanen authored Sep 23, 2019
    
    
    All these have the printf format string wrong. "%*s" sets the field width but
    does not limit the string to len bytes. You need to set precision instead to
    limit to len bytes: "%.*s".
    
    Found by grepping, after wondering why my WIP prints printed garbage at the
    end.
    
    Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
    1ca4ed20