cosmetic changes; update copyright year and remove trailing spaces
diff --git a/inc/UsefulBuf.h b/inc/UsefulBuf.h
index dd0a30b..4e69a17 100644
--- a/inc/UsefulBuf.h
+++ b/inc/UsefulBuf.h
@@ -453,7 +453,7 @@
@return A UsefulBufC that is the tail of UB or NULLUsefulBufC if
uAmount is greater than the length of the UsefulBufC
-
+
If the input UsefulBufC is NULL, but the len is not, then the
length of the tail will be calculated and returned along
with a NULL ptr.
@@ -461,7 +461,7 @@
static inline UsefulBufC UsefulBuf_Tail(UsefulBufC UB, size_t uAmount)
{
UsefulBufC ReturnValue;
-
+
if(uAmount > UB.len) {
ReturnValue = NULLUsefulBufC;
} else if(UB.ptr == NULL) {
@@ -469,7 +469,7 @@
} else {
ReturnValue = (UsefulBufC){(uint8_t *)UB.ptr + uAmount, UB.len - uAmount};
}
-
+
return ReturnValue;
}
diff --git a/src/UsefulBuf.c b/src/UsefulBuf.c
index 964e81b..5a7d37b 100644
--- a/src/UsefulBuf.c
+++ b/src/UsefulBuf.c
@@ -1,6 +1,6 @@
/*==============================================================================
Copyright (c) 2016-2018, The Linux Foundation.
- Copyright (c) 2018, Laurence Lundblade.
+ Copyright (c) 2018-2019, Laurence Lundblade.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index 8d216c7..b5d2f16 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -1,6 +1,6 @@
/*==============================================================================
Copyright (c) 2016-2018, The Linux Foundation.
- Copyright (c) 2018, Laurence Lundblade.
+ Copyright (c) 2018-2019, Laurence Lundblade.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/test/qcbor_decode_tests.c b/test/qcbor_decode_tests.c
index d71ebd5..38005c0 100644
--- a/test/qcbor_decode_tests.c
+++ b/test/qcbor_decode_tests.c
@@ -1,6 +1,6 @@
/*==============================================================================
Copyright (c) 2016-2018, The Linux Foundation.
- Copyright (c) 2018, Laurence Lundblade.
+ Copyright (c) 2018-2019, Laurence Lundblade.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/test/qcbor_decode_tests.h b/test/qcbor_decode_tests.h
index 6ba71b4..a7ee0b5 100644
--- a/test/qcbor_decode_tests.h
+++ b/test/qcbor_decode_tests.h
@@ -1,6 +1,6 @@
/*==============================================================================
Copyright (c) 2016-2018, The Linux Foundation.
- Copyright (c) 2018, Laurence Lundblade.
+ Copyright (c) 2018-2019, Laurence Lundblade.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/test/qcbor_encode_tests.h b/test/qcbor_encode_tests.h
index 32f9570..33703d8 100644
--- a/test/qcbor_encode_tests.h
+++ b/test/qcbor_encode_tests.h
@@ -1,6 +1,6 @@
/*==============================================================================
Copyright (c) 2016-2018, The Linux Foundation.
- Copyright (c) 2018, Laurence Lundblade.
+ Copyright (c) 2018-2019, Laurence Lundblade.
All rights reserved.
Redistribution and use in source and binary forms, with or without