Ignore:
Timestamp:
01/11/13 01:38:34 (6 years ago)
Author:
Nicholas Riley
Message:

Make buildable on OS X 10.8 (remove obsolete CoreGraphics? error), 32-bit only.

Fix a tiny buffer overflow.

Don't use printf to print things that aren't format strings.

Bump version number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/launch/launch/main.c

    r490 r651  
    33 Nicholas Riley <launchsw@sabi.net>
    44
    5  Copyright (c) 2001-09, Nicholas Riley
     5 Copyright (c) 2001-13, Nicholas Riley
    66 All rights reserved.
    77
     
    3737const char *APP_NAME;
    3838
    39 #define VERSION "1.1.1d3"
     39#define VERSION "1.1.1d4"
    4040
    4141#define STRBUF_LEN 1024
     
    9797    { procNotFound, "unable to connect to system service.\nAre you logged in?" },
    9898    { kCGErrorIllegalArgument, "window server error.\nAre you logged in?" },
    99     { kCGErrorApplicationRequiresNewerSystem, "application requires a newer Mac OS X version" },
    10099    { fnfErr, "file not found" },
    101100    { eofErr, "data not found" },
     
    660659    if (typeStr == NULL) {
    661660        // punt to displaying verbatim
    662         static char tmpBuffer[4];
     661        static char tmpBuffer[5];
    663662        tmpBuffer[4] = '\0';
    664663        strncpy(tmpBuffer, (const char *)&osType, 4);
     
    744743            continue;
    745744        }
    746         printf(arch->description);
     745        printf("%s", arch->description);
    747746    }
    748747    printf("\n");
Note: See TracChangeset for help on using the changeset viewer.