X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=fish%2Fhexedit.c;h=472aa8f060f76f0f5c94156398f3ae034f44e6d5;hb=04ea1375c55aa67df4e7fc61dbb534111767f3b6;hp=dfa188905c04c6972d843d0489da991c7ec20830;hpb=d75a2bff1264828f02b68a9c8bc7eb2521bd6684;p=libguestfs.git diff --git a/fish/hexedit.c b/fish/hexedit.c index dfa1889..472aa8f 100644 --- a/fish/hexedit.c +++ b/fish/hexedit.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -35,7 +35,7 @@ static off_t get_size (const char *filename); int -run_hexedit (const char *cmd, int argc, char *argv[]) +run_hexedit (const char *cmd, size_t argc, char *argv[]) { if (argc < 1 || argc > 3) { fprintf (stderr, _("hexedit (device|filename) [max | start max]\n")); @@ -100,7 +100,7 @@ run_hexedit (const char *cmd, int argc, char *argv[]) int r; struct stat oldstat, newstat; char buf[BUFSIZ]; - char tmp[] = "/tmp/guestfishXXXXXX"; + TMP_TEMPLATE_ON_STACK (tmp); int fd = mkstemp (tmp); if (fd == -1) { perror ("mkstemp");