~ubuntu-branches/debian/sid/feh/sid

« back to all changes in this revision

Viewing changes to src/imlib.c

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2011-11-03 15:08:18 UTC
  • mfrom: (1.3.17)
  • Revision ID: package-import@ubuntu.com-20111103150818-wg4n11kygle3luo1
Tags: 2.1-1
New upstream version
Closes: #646421

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
                weprintf("open url: libcurl initialization failure");
255
255
                return NULL;
256
256
        }
 
257
 
 
258
        if (strlen(tmpname) > (NAME_MAX-6))
 
259
                tmpname[NAME_MAX-7] = '\0';
257
260
        
258
261
        sfn = estrjoin("_", tmpname, "XXXXXX", NULL);
259
262
        free(tmpname);
 
263
 
260
264
        fd = mkstemp(sfn);
261
265
        if (fd != -1) {
262
266
                sfp = fdopen(fd, "w+");