]> arthur.barton.de Git - netatalk.git/blobdiff - bin/megatron/nad.c
in unicode function trailing zero needs to be wide, spotted by HAT
[netatalk.git] / bin / megatron / nad.c
index dac81a0982ea090d8f3e406cc8de984bffef21e0..8f4fbf9fe562eb23392447bb5712323e7fb79721 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nad.c,v 1.12 2005-04-28 20:49:20 bfernhomberg Exp $
+ * $Id: nad.c,v 1.13 2006-09-18 01:06:44 didg Exp $
  */
 
 #ifdef HAVE_CONFIG_H
@@ -337,7 +337,6 @@ static char *utompathiconv(char *upath)
         goto utompath_error;
     }
 
-    mpath[outlen] = 0;
     if (flags & CONV_REQMANGLE) 
        goto utompath_error;
 
@@ -382,7 +381,6 @@ char *mtoupathiconv(char *mpath)
         fprintf (stderr, "conversion from %s to %s for %s failed.", vol.v_maccodepage, vol.v_volcodepage, mpath);
         return(mtoupathcap( upath ));
     }
-    upath[outlen] = 0;
 
     return( upath );
 }