Skip to content

Commit 409617b

Browse files
committed
Adds destination size to conc_... functions and switch to strlcpy/strlcat
1 parent 6a550b4 commit 409617b

File tree

3 files changed

+102
-101
lines changed

3 files changed

+102
-101
lines changed

inc/dskdefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ LispPTR COM_writepage(LispPTR *args);
1919
LispPTR COM_truncatefile(LispPTR *args);
2020
LispPTR COM_changedir(LispPTR *args);
2121
LispPTR COM_getfreeblock(LispPTR *args);
22-
void conc_dir_and_name(char *dir, char *name, char *fname);
23-
void conc_name_and_version(char *name, char *ver, char *rname);
22+
void conc_dir_and_name(char *dir, char *name, char *fname, size_t fname_size);
23+
void conc_name_and_version(char *name, char *ver, char *rname, size_t rname_size);
2424
void separate_version(char *name, char *ver, int checkp);
2525
int unpack_filename(char *file, char *dir, char *name, char *ver, int checkp);
2626
int true_name(char *path);

0 commit comments

Comments
 (0)