View | Details | Raw Unified
Collapse All | Expand All

(-) loadparts.cpp.orig (-3 / +3 lines)
 Lines 6494-6500    Link Here 
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include "SDL.h"
#include "SDL/SDL.h"
char*
char*
my_strdup (char *str)
my_strdup (char *str)
 Lines 6603-6609    Link Here 
/* end confdefs.h.  */
/* end confdefs.h.  */
#include <stdio.h>
#include <stdio.h>
#include "SDL.h"
#include "SDL/SDL.h"
int
int
main ()
main ()
 Lines 245-251    Link Here 
	while ('\\' == line[l-1]) {
	while ('\\' == line[l-1]) {
            // concat next line(s)
            // concat next line(s)
	    int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
	    int bufsize = clamp(0LU, sizeof(line)-l, sizeof(line)-1);
	    fgets(&line[l-2], bufsize, fp);
	    fgets(&line[l-2], bufsize, fp);
	    if (feof((FILE*)fp)) break;
	    if (feof((FILE*)fp)) break;
	    l = strlen(line);
	    l = strlen(line);