}
}
- tmp = xstrdup("/tmp/opkg.XXXXXX");
-
- if (mkdtemp (tmp) == NULL)
- {
+ sprintf_alloc(&tmp, "%s/update-XXXXXX", opkg->conf->tmp_dir);
+ if (mkdtemp (tmp) == NULL) {
/* XXX: Error: could not create temporary file name */
free (lists_dir);
free (tmp);