(strcpy_truncate): change return value to be the length of `src'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6974 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -59,7 +59,7 @@ strcpy_truncate (char *dst, const char *src, size_t dst_sz)
|
|||||||
if (*src == '\0')
|
if (*src == '\0')
|
||||||
return n;
|
return n;
|
||||||
else
|
else
|
||||||
return dst_sz;
|
return n + strlen (src);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -59,7 +59,7 @@ strcpy_truncate (char *dst, const char *src, size_t dst_sz)
|
|||||||
if (*src == '\0')
|
if (*src == '\0')
|
||||||
return n;
|
return n;
|
||||||
else
|
else
|
||||||
return dst_sz;
|
return n + strlen (src);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user