X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fopenfilleddirunlink.c;h=b60118582d37ba06bb27ee87932ef9577e3dd5b6;hb=39871df164bcd09a2e0d8b60c74dd2bb0c1151be;hp=6ab9b68265701484d0d60a22239cb1931b00e5be;hpb=0f8dca08a4f68cba82c2c822998ecc309d3b7aaf;p=fs%2Flustre-release.git diff --git a/lustre/tests/openfilleddirunlink.c b/lustre/tests/openfilleddirunlink.c index 6ab9b68..b601185 100644 --- a/lustre/tests/openfilleddirunlink.c +++ b/lustre/tests/openfilleddirunlink.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -74,7 +72,7 @@ int main(int argc, char **argv) exit(1); } - sprintf(fname, "%s/0", dname1); + snprintf(fname, sizeof(fname), "%s/0", dname1); fprintf(stderr, "creating file %s\n", fname); fd = creat(fname, 0666); if (fd < 0) {