From 2e9291357d6b4695f7bbe9763fd6b5490247549e Mon Sep 17 00:00:00 2001 From: dzzxzz Date: Thu, 29 Dec 2011 06:35:55 +0000 Subject: [PATCH] delete a needless tab in function char *rt_strncpy(char *dst, const char *src, rt_ubase_t n) git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1887 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/kservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kservice.c b/src/kservice.c index f4d9e2414..fef730fd6 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -374,7 +374,7 @@ char *rt_strncpy(char *dst, const char *src, rt_ubase_t n) { /* NUL pad the remaining n-1 bytes */ while (--n != 0) - *d++ = 0; + *d++ = 0; break; } } while (--n != 0);