global_myname is a pstring, not an fstring
authorVolker Lendecke <vlendec@samba.org>
Wed, 21 Aug 2002 19:39:38 +0000 (19:39 +0000)
committerVolker Lendecke <vlendec@samba.org>
Wed, 21 Aug 2002 19:39:38 +0000 (19:39 +0000)
(This used to be commit 2df34c9bfc76ee832e5005a2ad0ff0b6abb98034)

source3/utils/net.c

index 416a599be32f2e9a9ebed6fad2ac9e3789cbb0e5..a3aa7adcae5f2d6ca17ff015c00d008248362994 100644 (file)
@@ -469,7 +469,7 @@ static struct functable net_func[] = {
        if (!*global_myname) {
                char *p2;
 
-               fstrcpy(global_myname, myhostname());
+               pstrcpy(global_myname, myhostname());
                p2 = strchr_m(global_myname, '.');
                if (p2) 
                         *p2 = 0;