Use slprintf not snprintf.
authorJeremy Allison <jra@samba.org>
Wed, 12 Jan 2000 02:52:42 +0000 (02:52 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 12 Jan 2000 02:52:42 +0000 (02:52 +0000)
Jeremy.

source/smbd/dfree.c

index ddb91ab498ac5e863632662f479cc6c34e0d5040..bd06d3f23513a00be2ac8b832d552f5ce33ff028 100644 (file)
@@ -214,7 +214,7 @@ static SMB_BIG_UINT disk_free(char *path, BOOL small_query,
                char *p;
                FILE *pp;
 
-               snprintf (line, sizeof(pstring), "%s %s", dfree_command, path);
+               slprintf (line, sizeof(pstring) - 1, "%s %s", dfree_command, path);
                pp = popen(line, "r");
                if (pp) {
                        fgets(line, sizeof(pstring), pp);