File diff r6124:7054f2e8fadf → r6125:eb40461cb765
src/driver.cpp
Show inline comments
 
/* $Id$ */
 

	
 
/** @file driver.cpp */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "debug.h"
 
#include "driver.h"
 
#include "functions.h"
 
#include "hal.h"
 
@@ -140,19 +142,19 @@ void LoadDriver(int driver, const char *
 
		*dc->drv = dd->drv;
 
	} else {
 
		char* parm;
 
		char buffer[256];
 
		const char* parms[32];
 

	
 
		// Extract the driver name and put parameter list in parm
 
		/* Extract the driver name and put parameter list in parm */
 
		ttd_strlcpy(buffer, name, sizeof(buffer));
 
		parm = strchr(buffer, ':');
 
		parms[0] = NULL;
 
		if (parm != NULL) {
 
			uint np = 0;
 
			// Tokenize the parm.
 
			/* Tokenize the parm. */
 
			do {
 
				*parm++ = '\0';
 
				if (np < lengthof(parms) - 1)
 
					parms[np++] = parm;
 
				while (*parm != '\0' && *parm != ',')
 
					parm++;