Changeset 6504


Ignore:
Timestamp:
Aug 8, 2007, 8:04:02 AM (17 years ago)
Author:
dmorissette
Message:

Fixed problems with very large HTML legends producing no output, use msIO_fwrite() instead of
msIO_printf() to write output (#1946)

Location:
trunk/mapserver
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mapserver/HISTORY.TXT

    r6502 r6504  
    1414---------------------------
    1515
     16- Fixed problems with very large HTML legends producing no output (#1946)
    1617
    1718- Use OGR-specific destructors for objects that have them rather than
  • trunk/mapserver/mapserv.c

    r6428 r6504  
    13441344          legendTemplate = generateLegendTemplate(msObj);
    13451345          if (legendTemplate) {
    1346              msIO_printf("Content-type: %s%c%c%s", msObj->Map->web.legendformat, 10, 10, legendTemplate);
     1346             msIO_printf("Content-type: %s%c%c", msObj->Map->web.legendformat, 10, 10);
     1347             msIO_fwrite(legendTemplate, strlen(legendTemplate), 1, stdout);
     1348
    13471349             free(legendTemplate);
    13481350          } else /* error already generated by (generateLegendTemplate()) */
  • trunk/mapserver/maptemplate.c

    r6491 r6504  
    29932993      }
    29942994      else
    2995           msIO_printf("%s", tmpline);
     2995          msIO_fwrite(tmpline, strlen(tmpline), 1, stdout);
    29962996      free(tmpline);
    29972997    }
     
    30143014        }
    30153015        else
    3016             msIO_printf("%s", line);
     3016            msIO_fwrite(line, strlen(line), 1, stdout);
    30173017    }
    30183018    if (!papszBuffer)
Note: See TracChangeset for help on using the changeset viewer.