1. 10 Dec, 2017 3 commits
    • Daniel Kurtz's avatar
      os/xprintf: add Xvscnprintf and Xscnprintf · a6e632aa
      Daniel Kurtz authored
      Backported from X.org:
      
      commit 5c2e2a164d615ab06be28a663734e782614b5cc7
      Author: Daniel Kurtz <djkurtz@chromium.org>
      Date:   Wed Apr 18 09:51:51 2012 +0000
      
          os/xprintf: add Xvscnprintf and Xscnprintf
      
          Normal snprintf() usually returns the number of bytes that would have been
          written into a buffer had the buffer been long enough.
      
          The scnprintf() variants return the actual number of bytes written,
          excluding the trailing '\0'.
      Signed-off-by: 's avatarDaniel Kurtz <djkurtz@chromium.org>
      Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Backported-to-NX-by: 's avatarMihai Moldovan <ionic@ionic.de>
      a6e632aa
    • Colin Harrison's avatar
      Typo in xserver Xvasprintf() · c281c6e0
      Colin Harrison authored
      Backported from X.org:
      
      commit 1324b0ca9f8a7fdaf03b374c75eb3c9df407c2f1
      Author: Colin Harrison <colin.harrison@virgin.net>
      Date:   Fri Dec 10 00:08:24 2010 +0000
      
          Typo in xserver Xvasprintf()
      
          I needed this patch in the wrapper around vsnprintf() in os/xprintf.c
          (MinGW for Windows build) to correct various crashes.
      Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Backported-to-NX-by: 's avatarMihai Moldovan <ionic@ionic.de>
      c281c6e0
    • Alan Coopersmith's avatar
      Add asprintf() implementation for platforms without it · 1e3a9748
      Alan Coopersmith authored
      Backported from X.org:
      
      commit c95c1d338fdb62dbe3dba934b97324fa778b7fce
      Author: Alan Coopersmith <alan.coopersmith@oracle.com>
      Date:   Sat Nov 27 18:43:12 2010 -0800
      
          Add asprintf() implementation for platforms without it
      
          Provides a portable implementation of this common allocating sprintf()
          API found in many, but not yet all, of the platforms we support.
          If the platform provides vasprintf() we simply wrap it, otherwise we
          implement it - either way callers can use it regardless of platform.
      
          Since not all platforms guarantee to NULL out the return pointer on
          failure, we don't either, and require callers to check the return
          value for -1.
      
          The old Xprintf() API is deprecated, but left for compatibility for now.
      
          The new API is added in a new header so that it can be used in parts of
          the server such as hw/xfree86/parser that don't include all the server
          headers.
      Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Reviewed-by: 's avatarMikhail Gusarov <dottedmag@dottedmag.net>
      
      Includes re-indentation changes from
      9838b7032ea9792bec21af424c53c07078636d21.
      Backported-to-NX-by: 's avatarMihai Moldovan <ionic@ionic.de>
      1e3a9748
  2. 09 Dec, 2017 8 commits
  3. 07 Dec, 2017 20 commits
  4. 06 Dec, 2017 1 commit
  5. 05 Dec, 2017 4 commits
  6. 02 Dec, 2017 3 commits
  7. 26 Nov, 2017 1 commit