diff options
author | Yukihiro Nakai <nakai@FreeBSD.org> | 2000-01-23 08:00:14 +0000 |
---|---|---|
committer | Yukihiro Nakai <nakai@FreeBSD.org> | 2000-01-23 08:00:14 +0000 |
commit | 98b5c37ae013ee1d684dc65738a1d8492f45c4d9 (patch) | |
tree | 63bd0b3f09ba7214815198b1c365d4a627e2c299 /games/xsoldier | |
parent | Update v1.2.0 -> v1.3.0 (diff) |
Rechange strncpy to strlcpy.
When you can't find strlcpy, update your FreeBSD... :)
Submitted by: John Baldwin <jhb@FreeBSD.org>
Notes
Notes:
svn path=/head/; revision=24969
Diffstat (limited to 'games/xsoldier')
-rw-r--r-- | games/xsoldier/files/patch-ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/xsoldier/files/patch-ac b/games/xsoldier/files/patch-ac index 60a9ee80e3d9..292382939991 100644 --- a/games/xsoldier/files/patch-ac +++ b/games/xsoldier/files/patch-ac @@ -5,7 +5,7 @@ else argv0 = argv[0]; - strcpy(command,argv0); /*** コマンド名取得とコピー ***/ -+ strncpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/ ++ strlcpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/ for (i=1; i<argc; i++) { @@ -13,7 +13,7 @@ { if (i < argc-1) - strcpy(display,argv[i+1]); -+ strncpy(display,argv[i+1],sizeof(display)); ++ strlcpy(display,argv[i+1],sizeof(display)); } else if ((strcmp(argv[i],"-wait")==0) || (strcmp(argv[i],"-w")==0)) { |