test/test-automation/xml.c
changeset 5737 303be71c64aa
parent 5732 1da5af48b964
child 5771 3f908b34b645
equal deleted inserted replaced
5736:1008297b86e1 5737:303be71c64aa
   157 		default:
   157 		default:
   158 			totalSize += 1;
   158 			totalSize += 1;
   159 			break;
   159 			break;
   160 		}
   160 		}
   161 	}
   161 	}
       
   162 	totalSize += 1; // for '\0'
   162 
   163 
   163 	char *retBuffer = SDL_malloc(totalSize * sizeof(char));
   164 	char *retBuffer = SDL_malloc(totalSize * sizeof(char));
   164 	if(retBuffer == NULL) {
   165 	if(retBuffer == NULL) {
   165 		return NULL;
   166 		return NULL;
   166 	}
   167 	}
   210 			break;
   211 			break;
   211 		}
   212 		}
   212 
   213 
   213 	}
   214 	}
   214 
   215 
       
   216 	retBuffer[retBufferCounter] = '\0';
       
   217 
   215 	return retBuffer;
   218 	return retBuffer;
   216 }
   219 }
   217 
   220 
   218 
   221 
   219 /*
   222 /*