diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2013-02-04 18:33:23 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2013-02-04 18:33:23 +0000 |
commit | 8d769fdd46627cd6319af138a97f1f1a4600431e (patch) | |
tree | ad8e3d29369336250625f098523bcc81f3f915af /net/netatalk3/files | |
parent | 98d9f38e48a1da307980564d2e1ac1b07cbaf9ba (diff) | |
download | ports-8d769fdd46627cd6319af138a97f1f1a4600431e.tar.gz ports-8d769fdd46627cd6319af138a97f1f1a4600431e.zip |
Notes
Diffstat (limited to 'net/netatalk3/files')
-rw-r--r-- | net/netatalk3/files/patch-libatalk_util_netatalk_conf.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c b/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c deleted file mode 100644 index 02dedb656168..000000000000 --- a/net/netatalk3/files/patch-libatalk_util_netatalk_conf.c +++ /dev/null @@ -1,20 +0,0 @@ ---- ./libatalk/util/netatalk_conf.c.orig 2013-01-07 12:21:30.309544508 +0000 -+++ ./libatalk/util/netatalk_conf.c 2013-01-07 12:23:22.360529479 +0000 -@@ -563,7 +563,7 @@ - EC_INIT; - struct vol *volume = NULL; - int i, suffixlen, vlen, tmpvlen, u8mvlen, macvlen; -- char *tmpname; -+ char tmpname[AFPVOL_U8MNAMELEN+1]; - ucs2_t u8mtmpname[(AFPVOL_U8MNAMELEN+1)*2], mactmpname[(AFPVOL_MACNAMELEN+1)*2]; - char suffix[6]; /* max is #FFFF */ - uint16_t flags; -@@ -643,7 +643,7 @@ - EC_NULL( volume->v_maccodepage = strdup(obj->options.maccodepage) ); - - vlen = strlen(name); -- tmpname = strdup(name); -+ strlcpy(tmpname, name, sizeof(tmpname)); - for(i = 0; i < vlen; i++) - if(tmpname[i] == '/') tmpname[i] = ':'; - |