• R/O
  • SSH
  • HTTPS

oricsdk: Commit


Commit MetaInfo

Revision1568 (tree)
Time2021-08-12 00:50:45
Authordbug

Log Message

Replaced some "gets" calls by "gets_s" to avoid some deprecation warnings

Change Summary

Incremental Difference

--- public/pc/tools/osdk/main/TapTool/sources/TapTool.cpp (revision 1567)
+++ public/pc/tools/osdk/main/TapTool/sources/TapTool.cpp (revision 1568)
@@ -235,7 +235,7 @@
235235 printf("Stored name is %s, enter new name (or RETURN to keep): ",name);
236236 else
237237 printf("Program has no stored name, enter a name: ");
238- gets(reply);
238+ gets_s(reply,sizeof(reply));
239239 if (reply[0]) strcpy(name,reply);
240240 } while (name[0]==0);
241241 }
--- public/pc/tools/osdk/main/tap2cd/sources/tap2cd.c (revision 1567)
+++ public/pc/tools/osdk/main/tap2cd/sources/tap2cd.c (revision 1568)
@@ -327,7 +327,7 @@
327327 printf("Stored name is %s, enter new name (or RETURN to keep): ",name);
328328 else
329329 printf("Program has no stored name, enter a name: ");
330- gets(reply);
330+ gets_s(reply,sizeof(reply));
331331 if (reply[0]) strcpy(name,reply);
332332 } while (name[0]==0);
333333 }
Show on old repository browser