Fixed out-by-one error in previous commit.
[AROS.git] / workbench / fs / ntfs / names.c
blob1a207366a58a7a49b44fae1eb45e586f9b3da98c
1 /*
2 * ntfs.handler - New Technology FileSystem handler
4 * Copyright © 2012 The AROS Development Team
6 * This program is free software; you can redistribute it and/or modify it
7 * under the same terms as AROS itself.
9 * $Id $
12 #include <aros/macros.h>
13 #include <exec/types.h>
14 #include <dos/dos.h>
15 #include <proto/exec.h>
17 #include <string.h>
18 #include <stdio.h>
19 #include <ctype.h>
21 #include "ntfs_fs.h"
22 #include "ntfs_protos.h"
24 #include "debug.h"
26 /* set the name of an entry. */
27 LONG SetDirEntryName(struct DirEntry *short_de, STRPTR name, ULONG len)
29 LONG err = 0;
31 D(bug("[NTFS] %s: setting name for entry no #%ld to '", __PRETTY_FUNCTION__, short_de->no);
32 RawPutChars(name, len); bug("'\n"));
34 return err;