-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd791d8
commit 6bb883b
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2009-2018 Max Kellermann <[email protected]> | ||
* Copyright 2009-2020 Max Kellermann <[email protected]> | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
|
@@ -30,7 +30,7 @@ | |
#include "StringStrip.hxx" | ||
#include "CharUtil.hxx" | ||
|
||
#include <string.h> | ||
#include <cstring> | ||
|
||
const char * | ||
StripLeft(const char *p) noexcept | ||
|
@@ -71,7 +71,7 @@ StripRight(const char *p, std::size_t length) noexcept | |
void | ||
StripRight(char *p) noexcept | ||
{ | ||
std::size_t old_length = strlen(p); | ||
std::size_t old_length = std::strlen(p); | ||
std::size_t new_length = StripRight(p, old_length); | ||
p[new_length] = 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2009-2018 Max Kellermann <[email protected]> | ||
* Copyright 2009-2020 Max Kellermann <[email protected]> | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
|