osmo_strlcpy: Avoid calling memcpy with size=0

Change-Id: Ic84af86d33c8a20f06036b13d0a10cf312582f0d
diff --git a/src/utils.c b/src/utils.c
index 3c4a8c9..168f85f 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -545,7 +545,7 @@
 
 /*! Generic big-endian encoding of big endian number up to 64bit
  *  \param[in] value unsigned integer value to be stored
- *  \param[in] data_len number of octets 
+ *  \param[in] data_len number of octets
  *  \returns static buffer containing big-endian stored value
  *
  * This is like osmo_store64be_ext, except that this returns a static buffer of
@@ -577,7 +577,7 @@
 
 	if (siz) {
 		size_t len = (ret >= siz) ? siz - 1 : ret;
-		if (src)
+		if (len)
 			memcpy(dst, src, len);
 		dst[len] = '\0';
 	}