Skip to content

Commit eb61b92

Browse files
committed
fix: arch_strcpy_limited lines
1 parent 2e920eb commit eb61b92

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/libltfs/arch/ltfs_arch_ops.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,10 @@ extern "C" {
7777
static inline void arch_strcpy_limited(char *dest, const char *src, int count)
7878
{
7979
int i;
80-
for (i = 0; i < (count) && (src)[i] != '\0'; i++) {
81-
80+
for (i = 0; i < (count) && (src)[i] != '\0'; i++)
8281
(dest)[i] = (src)[i];
83-
}
84-
if (i < (count)) {
85-
82+
if (i < (count))
8683
(dest)[i] = '\0';
87-
}
8884
}
8985

9086

0 commit comments

Comments
 (0)