mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	tst: launcher-secrets: secret: replace gets with fgets
This commit is contained in:
		| @@ -16,7 +16,14 @@ int main() | |||||||
| { | { | ||||||
|     char pass[256]; |     char pass[256]; | ||||||
|  |  | ||||||
|     gets(pass); |     fgets(pass, sizeof pass, stdin); | ||||||
|  |     for (char *p = pass; *p; p++) | ||||||
|  |         if ('\n' == *p) | ||||||
|  |         { | ||||||
|  |             *p = '\0'; | ||||||
|  |             break; | ||||||
|  |         } | ||||||
|  |  | ||||||
|     if (0 == strcmp("foobar", pass)) |     if (0 == strcmp("foobar", pass)) | ||||||
|     { |     { | ||||||
|         puts("OK"); |         puts("OK"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user