Commit Graph

3 Commits

Author SHA1 Message Date
Pau Espin cbdde82aca bind_receiver_resp_test.c: Fix compilation warning
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c: In function ‘main’:
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c:55:58: warning: ‘snprintf’ output
 truncated before the last format character [-Wformat-truncation=]
     snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "1234567890123456");
                                                          ^
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c:55:5: note: ‘snprintf’ output 17
bytes into a destination of size 16
     snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "1234567890123456");

Change-Id: I4ec682a5e2ee4d02008a9c86a0a5507792667d0e
2017-09-15 20:24:24 +02:00
Holger Hans Peter Freyther eca1440439 misc: Always include stdint.h as it is almost 2013 now
C99 is there for over a decode, always depend on the stdint header
being present, specially as the code is using uint32_t all over the
place.
2012-11-09 13:39:51 +01:00
Harald Welte 4b233b4f3b initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00