Changeset 3430 for neercs


Ignore:
Timestamp:
May 5, 2009, 12:26:23 AM (12 years ago)
Author:
Pascal Terjan
Message:
  • Simplify a call to snprintf
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/attach.c

    r3338 r3430  
    431431        char buf[32];
    432432        int bytes;
    433         bytes = snprintf(buf, sizeof(buf)-1, "RESIZE %10d%c%10d",
     433        bytes = snprintf(buf, sizeof(buf)-1, "RESIZE %10d %10d",
    434434                         caca_get_event_resize_width(&ev),
    435                          ' ',
    436435                         caca_get_event_resize_height(&ev));
    437436        buf[bytes] = '\0';
Note: See TracChangeset for help on using the changeset viewer.