diff options
Diffstat (limited to 'libc/string/i386/strncpy.c')
-rw-r--r-- | libc/string/i386/strncpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/i386/strncpy.c b/libc/string/i386/strncpy.c index ba0c41063..e1c7f1dcf 100644 --- a/libc/string/i386/strncpy.c +++ b/libc/string/i386/strncpy.c @@ -68,7 +68,7 @@ int main() str[4] = '*'; str[5] = '+'; strncpy(str, "abc", 5); printf(strcmp(str, "abc") == 0 && str[4] == 0 && str[5] == '+' ? "ok\n" : "BAD!\n"); - strncpy(str, "abc", 0); /* should do nothing */ + strncpy(str, "def", 0); /* should do nothing */ printf(strcmp(str, "abc") == 0 && str[4] == 0 && str[5] == '+' ? "ok\n" : "BAD!\n"); } |