Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
xbench
xbench-0.2-gets.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xbench-0.2-gets.patch of Package xbench
Index: main.c =================================================================== --- main.c.orig +++ main.c @@ -181,18 +181,18 @@ Display *dpy; printf("\n"); fprintf(stderr, "describe brand/configuration of SERVER machine (1 line)\n"); fprintf(stderr, "(example: XYZ-891 with steam-engine [return]\n"); - gets(buffer); - printf("server: %s\n", buffer); + fgets(buffer, sizeof buffer, stdin); + printf("server: %s", buffer); fprintf(stderr, "describe brand/configuration of CLIENT machine (1 line)\n"); - gets(buffer); - printf("client: %s\n", buffer); + fgets(buffer, sizeof buffer, stdin); + printf("client: %s", buffer); fprintf(stderr, "describe communication used (1 line)\n"); fprintf(stderr, "(example: 10Mb ether or 19600 slip ..)\n"); - gets(buffer); - printf("communication: %s\n", buffer); + fgets(buffer, sizeof buffer, stdin); + printf("communication: %s", buffer); fprintf(stderr, "any additional notes (1 line)\n"); - gets(buffer); - printf("notes: %s\n", buffer); + fgets(buffer, sizeof buffer, stdin); + printf("notes: %s", buffer); printf("\n"); printf("==================================================\n"); printf("SERVER INFORMATION\n");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor