kopia lustrzana https://github.com/Hamlib/Hamlib
				
				
				
			fixed bug in kenwood_transaction()
memset() missed initializing the answer buffer by one. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2213 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.7
							rodzic
							
								
									55354d8d32
								
							
						
					
					
						commit
						b572fbfaf3
					
				|  | @ -2,7 +2,7 @@ | ||||||
|  *  Hamlib Kenwood backend - main file |  *  Hamlib Kenwood backend - main file | ||||||
|  *  Copyright (c) 2000-2005 by Stephane Fillod and others |  *  Copyright (c) 2000-2005 by Stephane Fillod and others | ||||||
|  * |  * | ||||||
|  *	$Id: kenwood.c,v 1.94 2007-08-18 12:55:46 n0nb Exp $ |  *	$Id: kenwood.c,v 1.95 2007-09-04 15:01:23 y32kn Exp $ | ||||||
|  * |  * | ||||||
|  *   This library is free software; you can redistribute it and/or modify |  *   This library is free software; you can redistribute it and/or modify | ||||||
|  *   it under the terms of the GNU Library General Public License as |  *   it under the terms of the GNU Library General Public License as | ||||||
|  | @ -167,7 +167,7 @@ transaction_write: | ||||||
|         return RIG_OK;  /* don't want a reply */ |         return RIG_OK;  /* don't want a reply */ | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     memset(data,0,(*datasize)-1); |     memset(data,0,*datasize); | ||||||
|     retval = read_string(&rs->rigport, data, *datasize, cmdtrm, strlen(cmdtrm)); |     retval = read_string(&rs->rigport, data, *datasize, cmdtrm, strlen(cmdtrm)); | ||||||
|     if (retval < 0) { |     if (retval < 0) { | ||||||
|         if (retry_read++ < rig->state.rigport.retry) |         if (retry_read++ < rig->state.rigport.retry) | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Thomas Beierlein, DL1JBE
						Thomas Beierlein, DL1JBE