Displaying 4 results from an estimated 4 matches for "safe_strncpy".
Did you mean:
  safe_strcpy
  
2013 Apr 02
0
flac 1.3.0pre3 pre-release
....c
+++ b/src/monkeys_audio_utilities/flac_mac/main.c
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
 		/* for the full 'from' and 'to' paths for the renamer process */
 		p = strrchr(argv[from_arg],'\\');
 		safe_strncat(from, p? p+1 : argv[from_arg], sizeof(from));
-		safe_strncpy(to, from, sizeof(to), sizeof(to));
+		safe_strncpy(to, from, sizeof(to));
 
 		cptr = strrchr(from,'.');
 		if(cptr == NULL)
-------------- next part --------------
diff --git a/src/utils/flactimer/main.cpp b/src/utils/flactimer/main.cpp
index 068d518..85e8a33 100644
--- a/src/utils/flactim...
2013 Apr 01
2
flac 1.3.0pre3 pre-release
Janne Hyv?rinen wrote:
> Zip with random patches:
> 
> flac_mac: fixes some missing parameters from safe string handling 
> changes in flac_mac's main.c
> flac_mac_project: adds flac's include dir for the project so new 
> functions can be found
> progress_display: flac testing progress display used old functions that 
> didn't get utf-8 decoding
>
2019 Jun 09
0
[ANNOUNCE] sessreg 1.1.2
...s for X sessions.
It was originally written for use with xdm, but may also be used with
other display managers such as gdm or kdm.
Changes since 1.1.1:
Alan Coopersmith (4):
      Update README for gitlab migration
      Update configure.ac bug URL for gitlab migration
      Add comment about why safe_strncpy isn't replaced with strlcpy
      sessreg 1.1.2
Fabrice Fontaine (1):
      Fix missing defines _PATH_WTMPX/_PATH_UTMPX in musl
Peter Hutterer (1):
      Replace strncpy calls with a sane version that always terminates
git tag: sessreg-1.1.2
https://xorg.freedesktop.org/archive/individual/a...
2013 Apr 20
2
Metaflac hex dump UTF-8 and locale fix
...ocales I tried (Finnish, German, English US).
-------------- next part --------------
diff --git a/src/metaflac/utils.c b/src/metaflac/utils.c
index 934cfcf..debc11e 100644
--- a/src/metaflac/utils.c
+++ b/src/metaflac/utils.c
@@ -77,17 +77,23 @@ void local_strcat(char **dest, const char *source)
 	safe_strncpy((*dest)+ndest, source, ndest + nsource + 1);
 }
 
+static inline int local_isprint(int c)
+{
+	if (c < 0x32) return 0;
+	return isprint(c);
+}
+
 void hexdump(const char *filename, const FLAC__byte *buf, unsigned bytes, const char *indent)
 {
 	unsigned i, left = bytes;
 	const FLAC__byte *b = b...