projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4dd5a7
)
Avoid a compilation warning in w32.c
author
Eli Zaretskii
<eliz@gnu.org>
Fri, 23 Aug 2019 13:00:25 +0000
(16:00 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Fri, 23 Aug 2019 13:00:25 +0000
(16:00 +0300)
* src/w32.c (logon_network_drive): Avoid compilation warning
about strncpy arguments.
src/w32.c
patch
|
blob
|
history
diff --git
a/src/w32.c
b/src/w32.c
index 36a5a37496eb9fe65b7ceff9244994e928f10bce..d7a91692c63108781042eecb0ead36a09bf03dec 100644
(file)
--- a/
src/w32.c
+++ b/
src/w32.c
@@
-3918,7
+3918,7
@@
logon_network_drive (const char *path)
return;
n_slashes = 2;
- strncpy (share, path, MAX_UTF8_PATH);
+ strncpy (share, path, MAX_UTF8_PATH
- 1
);
/* Truncate to just server and share name. */
for (p = share + 2; *p && p < share + MAX_UTF8_PATH; p++)
{