Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 249384
Collapse All | Expand All

(-)converter/ppm/picttoppm.c (-2 / +19 lines)
Lines 4056-4061 Link Here
4056
4056
4057
4057
4058
4058
4059
static void
4060
loadDefaultFontDir(void) {
4061
/*----------------------------------------------------------------------------
4062
   Load the fonts from the font directory file "fontdir" (in the current
4063
   directory), if it exists.
4064
-----------------------------------------------------------------------------*/
4065
    struct stat statbuf;
4066
    int rc;
4067
4068
    rc = stat("fontdir", &statbuf);
4069
    
4070
    if (rc == 0)
4071
        load_fontdir("fontdir");
4072
}
4073
4074
4075
4059
int
4076
int
4060
main(int argc, char * argv[]) {
4077
main(int argc, char * argv[]) {
4061
    int argn;
4078
    int argn;
Lines 4092-4099 Link Here
4092
        ++argn;
4109
        ++argn;
4093
    }
4110
    }
4094
4111
4095
    load_fontdir("fontdir");
4096
4097
    if (argn < argc) {
4112
    if (argn < argc) {
4098
        ifp = pm_openr(argv[argn]);
4113
        ifp = pm_openr(argv[argn]);
4099
        ++argn;
4114
        ++argn;
Lines 4103-4108 Link Here
4103
    if (argn != argc)
4118
    if (argn != argc)
4104
        pm_usage(usage);
4119
        pm_usage(usage);
4105
4120
4121
    loadDefaultFontDir();
4122
4106
    if (header) {
4123
    if (header) {
4107
        stage = "Reading 512 byte header";
4124
        stage = "Reading 512 byte header";
4108
        skip(512);
4125
        skip(512);

Return to bug 249384