-/* -*- 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.
return 1;
} else if (argv[optind] != NULL) {
if (chdir(argv[optind]) < 0) {
- sprintf(msg, "chdir '%s'\n", argv[optind]);
+ snprintf(msg, sizeof(msg),
+ "chdir '%s'\n", argv[optind]);
perror(msg);
return 2;
}